Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Draw chart using Tchart and displaying the axis

Posted on 2003-11-19
3
Medium Priority
?
886 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
Binsky earned 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

618 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