Overlay line series, ignoring datetime axis

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
pw
Newbie
Newbie
Posts: 57
Joined: Fri Nov 15, 2002 12:00 am

Overlay line series, ignoring datetime axis

Post by pw » Tue Apr 15, 2008 5:15 am

Hi,

I've a chart where there are 3 line series with the following characteristics:

Series 1: Daily data, say from 1-Jan-08 to 1-Feb-08
Series 2: Hourly data, from 24-Jan-08 to 14-Feb-08
Series 3: Half hourly data, from 2-Feb-08 to 1-Mar-08

The users could change the date range in the 3 series. When I lot in using line series, it'll show up nicely.

If I want to plot another 3 series but using different periods, say using 2007 data, the 3 new series will show up on the left side of the chart and the 3 original series will be on the right hand side due to the datetime axis.

How can I have the new series overlay above the original series? This means, the first point of the new series will start at the same place as the first point of the original series.

I've tried using
for (int i = 0; i<value.Length; i++)
{
line.Add(i, double.Parse(value.ToString()),label)
}

but I found that it wouldn't work as the 3 series overlap and have different time steps.

Also, can I use have the bottom axis showing only the label from the new series?

Thanks.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Apr 15, 2008 7:29 am

Hi pw,

The easiest way to achieve what you request is assigning different horizontal axis to the 2 series sets. As you say, you could use the bottom axis for the new ones and the top axis for the older ones. If you don't want the top axis visible you can also hide it. For more information on axes settings please read "Tutorial 4 - Axis Control". You'll find the tutorials at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply