C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[53368] 고수님 날짜를 TChart Bottom Axis 에서 증가분으로 넗고 싶습니다.
구윤태 [] 1552 읽음    2008-05-07 14:42
Chart1->Series[0]->Clear();
Chart1->Series[1]->Clear();

Query2->Close();
Query2->SQL->Clear();

Query2->SQL->Add("select count(*) AS MNUM , MeasuresDate from Patients.db A , Measures.db B");
Query2->SQL->Add("where  A.PatientsID=B.PatientsID");
Query2->SQL->Add("and ( MeasuresDate  BETWEEN :from_date AND :to_time) ");
Query2->SQL->Add("group by MeasuresDate");
Query2->SQL->Add("order by MeasuresDate");
Query2->ParamByName("from_date")->AsDate = this->DateTimePicker_from->Date;
Query2->ParamByName("to_time")->AsDate = this->DateTimePicker_to->Date;
Query2->Prepare();
       
if(Query2->Prepared) Query2->Open();


Query2->First();
while(!Query2->Eof )
{
  Chart1->Series[0]->AddXY( Query2->RecNo, Query2->FieldByName("MNUM")->AsInteger,"", clYellow);
  Query2->Next();
}
Query2->Last();



문의 위의 코드에서
TChart  Bottom Axis 에서 증가분으로 넗고 싶습니다.

문제는 날짜로 되어 있어서 MeasuresDate 값을 가져올때  AsDateTime 형식으로 가져오는데

2008-04-01  ~ 2008-05-06  사이를   x축에 넣고 카운트값을 y축에 넣고  싶은데..

최대값과 , 최소값을 기준으로   1일씩 간격으로   해서 그래프를 그리고 싶은데

TChart  Bottom Axis 처리를 어떻게 해야되는지 모르겠습니다.

고수님 알려주세요..

Y축은  count 값
X축은  날짜 증분 값

+ -

관련 글 리스트
53368 고수님 날짜를 TChart Bottom Axis 에서 증가분으로 넗고 싶습니다. 구윤태 1552 2008/05/07
53369     Re:고수님 날짜를 TChart Bottom Axis 에서 증가분으로 넗고 싶습니다. smleelms 2807 2008/05/07
53372         고맙습니다.. 해결했습니다. 구윤태 1587 2008/05/07
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.