Page 1 of 1

MinorTicks count increases automatically

Posted: Wed Nov 04, 2015 2:38 pm
by 9526439
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 8687 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 8700 times
why minor ticks increases?
Note:-We are using custom axis.
Please provide any solution asap.
Thanks in advance.

Thanks&Regards
PlanoResearch

Re: MinorTicks count increases automatically

Posted: Thu Nov 05, 2015 3:06 pm
by Christopher
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?

Re: MinorTicks count increases automatically

Posted: Wed Dec 09, 2015 12:17 pm
by 9526439
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 8643 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 8643 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,

Re: MinorTicks count increases automatically

Posted: Wed Dec 09, 2015 4:43 pm
by Christopher
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.