Overlaying Multiple Years 2004-2006

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Kevin
Newbie
Newbie
Posts: 2
Joined: Mon Sep 13, 2004 4:00 am

Overlaying Multiple Years 2004-2006

Post by Kevin » Wed Aug 01, 2007 1:25 am

Hello,

I need to create a chart that overlays multiple years of data for
comparison. For example, comparing the number of widges produced by day of
the year.

I know how to create a line chart over time (X= Jan 1 though Dec 31) and
(Y=Units). That chart is working fine. But now I want to overlay 2004,
2005 and 2006. where each line represents a different year on the chart (3
lines), on the same chart Jan-Dec.

Can anyone help?

Thanks,

Kevin

xxxxxx
Advanced
Posts: 128
Joined: Tue Jun 19, 2007 12:00 am
Location: Russia
Contact:

Post by xxxxxx » Wed Aug 01, 2007 8:11 am

I see two possible solution:
1. Use additional custom horizontal axes for each year - however it could be cumbersome and heavy.
2. Use the same horizontal axis for each year, make plots versus day number instead of TDateTime or, say, adjust all dates to the same year by adding/subtracting i*365 (IncMonth function can help)
and make plots different by color, pen whatsoever.
Regards, Alexander
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009

Post Reply