Issue with Bottom DateTime axis with line style Stairs

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
vishwa
Newbie
Newbie
Posts: 33
Joined: Mon Oct 15, 2007 12:00 am

Issue with Bottom DateTime axis with line style Stairs

Post by vishwa » Tue Dec 20, 2011 7:06 am

Hi,
I am facing issue in TeeChart when I use bottom axis as DateTime and enable style as Stairs.
I am using TeeChart in my project in such a way:
Steema.TeeChart.Styles.Line trLine = new Steema.TeeChart.Styles.Line();
trLine.XValues.DateTime = true;
tChart1.Axes.Bottom.SetMinMax(dt1, dt2); where value of dt1 and dt2 are following:
dt1 = 12/19/2011 12:04:36 PM
dt2 = 12/20/2011 12:04:36 PM

This works fine when Stairs is disabled but,
When I set trrLine.Stairs = true; and call tChart1.Axes.Bottom.SetMinMax(dt1, dt2)
it increments right most bottom axis label by 3 min approx as shown in attached bitmap. That is wrong. Ideally it should show left most axis value as value of dt1 and right most value as value of dt2. This works fine if I set trrLine.Stairs = false.

So my question is how to show left and right most value as per passed value in function SetMinMax (.. , ..) when Stairs is enabled.

Also I have noticed that this extra increments is around 1.5 min for each 12 hr duration, so for 1 day duration it comes as 3 min extra and it shows future time if dt2 is current time.

One more update the axis label changes dynamically if I resize it. On shrinking it; the rightmost values keep on increasing.
Please let me know how to fix this issue or any workaround.
Thanks in advance
Attachments
TeeChart Issue.png
Issue with Bottom DateTime axis with line style Stairs
TeeChart Issue.png (7.36 KiB) Viewed 5543 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Issue with Bottom DateTime axis with line style Stairs

Post by Sandra » Wed Dec 21, 2011 1:19 pm

Hello vishwa,

Can you please send us a simple project, so we can reproduce exactly your problem here?

Thanks,
Best Regards,
Sandra Pazos / 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