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
Issue with Bottom DateTime axis with line style Stairs
Issue with Bottom DateTime axis with line style Stairs
- Attachments
-
- Issue with Bottom DateTime axis with line style Stairs
- TeeChart Issue.png (7.36 KiB) Viewed 6728 times
Re: Issue with Bottom DateTime axis with line style Stairs
Hello vishwa,
Can you please send us a simple project, so we can reproduce exactly your problem here?
Thanks,
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 |
Instructions - How to post in this forum |