DBChart and 2 series comparison

Vaalar
Vaalar used Ask the Experts™
on
Hi,
I would like to make a comparison of 2 series, both have the same x and y axis - x axis shows the date in yyyy-MM-dd HH:mm:ss format, y axis shows the rate of production.
For example I would like to compare the production on 2009-10-20 from 06 a.m. to 2 p.m.
and the production on 2009-10-20 from 2 p.m and 10 p.m
I would like to receive 2 lines on one chart.
Best Regards
Vaalar
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Emmanuel PASQUIERFreelance Project Manager
Top Expert 2010

Commented:
Follow this guide

http://www.digitalcoding.com/tutorials/delphi/Simple-steps-to-create-Delphi-chart.html

For 2 series, you just have to click twice on the Add button

Author

Commented:
hehe,
it`s not so simple - maybe I explained it wrong.
I have a chart with 2 series, both set up with Dataset as querry.
First series takes data from query1 and secound from query2.
Now if I choose as an period for serie1 from 2009-09-01 to 2009-09-02 and time from 6 a.m to 2 p.m
and serie2 from 2009-09-01 to 2009-09-02 and time from 2 p.m to 10 p.m I want to receive 2 lines which i can compare - now the 2 lines are moved from each other first ends at 2 p.m and secound starts at 2 p.m. \
I want these two series to start at the same point so you can check which one has higher values.
Freelance Project Manager
Top Expert 2010
Commented:
ok, I though it was too easy :o)

What is the time between 2 data in one serie ?

If this is a daily analysis, t you just cut the time in both X values : aDate:=Trunc(aDateTime)
Otherwise, you have to normalize it for one of the series : theNormalizeDT:=aDateTime-OffsetDT
Where OffsetDT:=difference between both starting X values of the 2 series
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

Author

Commented:
I`ll check it today. I hope we will succed.:)
Br
Vaalar
Emmanuel PASQUIERFreelance Project Manager
Top Expert 2010

Commented:
Hello Vaalar !
How did you manage with your charts ? Need some more advices ?

Author

Commented:
THX for your help, and sry for so long time before grading points

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial