Page 1 of 1

Tee Chart for .net Custom axis

Posted: Thu Sep 28, 2006 10:45 am
by 9792366
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

Posted: Thu Sep 28, 2006 12:55 pm
by narcis
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.