Solved

Draw chart using Tchart and displaying the axis

Posted on 2003-11-19
3
874 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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

763 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

6 Experts available now in Live!

Get 1:1 Help Now