Hi,
I have an UltraChart 8.1 in my app. It is set to be a stacked bar chart. I want the y axis to always show whole numbers (0, 1, 2), but it is splitting the y axis into tickmarks of it's own choosing (0, 0.4, 0.8, 1.2, 1.6, 2). I saw a post that said I could set the format of the tickmark by setting chart.Axis.Y.Labels.ItemFormatString, but that does not change the intervals, so I ended up with a graph that was marked with rounded intervals (0, 1, 1, 2, 2). I see that I can set chart.Axis.Y.TickmarkInterval to some number to specify the intervals, but that is not the perfect solution either. I don't know how large my Y-axis should get - sometimes it may only need to go to 2, other times it could need to go to 100. It would be nice if I could make it figure out intervals to display automatically, but make sure that they were whole-number intervals. Is there a way to do that?
Thanks,
~Karen
Thanks Max - that did just what I needed!
Setting Y axis TickmarkStyle to Smart should resolve the issue, but only when the range of values is sufficiently large. I'm afraid for small ranges, you will always see fractions with Smart axis setting. If you have a way of querying your data, you can detect if the range is small enough to use TickmarkStyle=DataInterval and TickmarkInterval=1. In other cases TickmarkStyle=Smart should do the trick.