Tee Chart for .net Custom axis

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Vikas Aggarwal
Newbie
Newbie
Posts: 14
Joined: Thu Aug 31, 2006 12:00 am

Tee Chart for .net Custom axis

Post by Vikas Aggarwal » Thu Sep 28, 2006 10:45 am

Scenario:
We are plotting following two series on single chart. Custom Y-axis is added for Series 2. For both the series, we set "Series.XValues.DateTime = true;".

Series1:
X (DateTime values) Y (integer/double values)
9/27/2006 6:00:00 PM 12
9/27/2006 6:02:00 PM 35
9/27/2006 6:04:00 PM 10
9/27/2006 6:05:00 PM 29
9/27/2006 6:06:00 PM 43
9/27/2006 6:08:00 PM 50
9/27/2006 6:10:00 PM 23

Series2:
X Y
9/27/2006 6:00:00 PM 12
9/27/2006 6:05:00 PM 12
9/27/2006 6:10:00 PM 12

Problem:
Currently, X-axis labels get overlapped with each other (for 9/27/2006 6:05:00 PM). Is there any way that x-axis labels should look consistent in definite format like with every one minute difference?
9/27/2006 6:00:00 PM
9/27/2006 6:01:00 PM
9/27/2006 6:02:00 PM
9/27/2006 6:03:00 PM
9/27/2006 6:04:00 PM
9/27/2006 6:05:00 PM
9/27/2006 6:06:00 PM
9/27/2006 6:07:00 PM
9/27/2006 6:08:00 PM
9/27/2006 6:09:00 PM
9/27/2006 6:10:00 PM

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

Post by Narcís » Thu Sep 28, 2006 12:55 pm

Hi Vikas,

You can try several things here:

1. Set one day label increment:

Code: Select all

            tChart1.Axes.Bottom.Increment = (double)Steema.TeeChart.DateTimeSteps.OneDay;
2. Increase labels separation so that they don't overlap:

Code: Select all

            tChart1.Axes.Bottom.Labels.Separation += 10;
3. Set labels angle so that they are vertical or an intermediate angle:

Code: Select all

            tChart1.Axes.Bottom.Labels.Angle = 90;
If the problem persists please send us an example we can run "as-is" to reprodue the problem here and let us know which TeeChart version are you using.

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
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