Solved

Draw chart using Tchart and displaying the axis

Posted on 2003-11-19
3
876 Views
Last Modified: 2010-08-05
Hi all,
right now i'm doing a project that I have to display a chart. The data was taken from the database table.

1. Do you have any example how to draw that ? ( previously I was doing it using the TDBChart, but not I nedd to do that using the TChart)

2. I'm using 'date of the record' to be the x-axis, but instead of the date, I want to display the day of the week (for example 1 for monday, 2 for tuesday... and so on) any solution for that..??

ok I think that's all.... I Really... really need the help.... Thanks alottt ^^
0
Comment
Question by:pipinana02
3 Comments
 
LVL 1

Accepted Solution

by:
Binsky earned 50 total points
ID: 9785748
Hi,

1 - I usually use a TSeriesList for displaying of data, this will probably work from a database as well...
--> To fill a serieslist :
      for Index := 1 to max do
      begin
         tempY := DataY;
         tempX := DataY;
         Chart.Series[1].Add(tempY, tempX);
      end;
2 - I'm not sure about this, you might want to check the :     TChartAxis.DateTimeFormat property help text.

Robin
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now