Solved

Draw chart using Tchart and displaying the axis

Posted on 2003-11-19
3
877 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Send message from delphi to whatsapp, is it possible? 3 1,459
oracle global variables 4 69
Unique identifier on a terminal server (rdp) 4 55
DBGrid or StringGrid ? 6 91
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 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