MinorTicks count increases automatically

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

MinorTicks count increases automatically

Post by amol » Wed Nov 04, 2015 2:38 pm

Hi Steema Support,

We have one issue regarding minor ticks of axis.As shown in below img1 total number of minorticks count is 8 i.e. fine
img1.png
img1
img1.png (26.36 KiB) Viewed 9193 times
But as shown in img2 when we zoomed chart minor ticks increase 8 to 10 and the count in the editor is still 8. As shown in below img2
img2.png
img2
img2.png (44.92 KiB) Viewed 9206 times
why minor ticks increases?
Note:-We are using custom axis.
Please provide any solution asap.
Thanks in advance.

Thanks&Regards
PlanoResearch

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: MinorTicks count increases automatically

Post by Christopher » Thu Nov 05, 2015 3:06 pm

amol wrote: why minor ticks increases?
Note:-We are using custom axis.
Given that custom axes do not zoom automatically, this problem quite likely depends on the code you have used to enable zooming on custom axes.

Could you please post some example code I can run "as-is" to reproduce your issue here?
Best Regards,
Christopher Ireland / 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

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: MinorTicks count increases automatically

Post by amol » Wed Dec 09, 2015 12:17 pm

Hi Steema Support,

Thanks for your reply.

We are attaching the demo for the same, hope it will help.

In the demo when we click on "Set Bottom Axis First Time" button then its set the Min/Max of Bottom axis as shown in Img1 below. i.e 2 to 8
img1.png
Img1
img1.png (151.17 KiB) Viewed 9149 times
here as shown in img1 the highlighted area MinorTicks Count is more then expected(we had set it to 8 count).
Again when we click on "Set Bottom Axis Second Time" button then its sets the new Min/Max of Bottom axis as shown in Img2 below. i.e. 2 to 300
img2.png
Img2
img2.png (159.49 KiB) Viewed 9149 times
as shown in this img2 highlighted area does not shows any Minorticks.

As described above we want that if we set Minorticks count to 8 then it must show 8 minor ticks.

Please provide appropriate solution.
Thanks in advance.

thanks,
Attachments
Minor Ticks In log Axis is more.rar
MinorTicks In log axis
(68.05 KiB) Downloaded 784 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: MinorTicks count increases automatically

Post by Christopher » Wed Dec 09, 2015 4:43 pm

amol wrote: as shown in this img2 highlighted area does not shows any Minorticks.

As described above we want that if we set Minorticks count to 8 then it must show 8 minor ticks.
This seems to be a defect which I have added to our issue tracker with id=1387. Other than manually drawing the ticks yourself using the OnAfterDraw event, I'm afraid I cannot think of any other workaround.
Best Regards,
Christopher Ireland / 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

Post Reply