ChartView/LineSeries tickAnchor not working as expected.
-
I have a ChartView with a LineSeries (that will likely become an AreaSeries...in case the answer impacts that differently). The ValueAxis for Y goes from -4.0 to 20.0. I want tick marks at 0, 5, 10, 15 and 20. Based on the documentation, I should be able to set the tickAnchor value to 0.0 and the tickCount to 5 and get what I want, but instead I get tick marks at -4.0, 2.0, 8.0, 14.0 and 20.0.
Can I specify exactly what tick values to display? Similar to Categories?
Thanks.
-
This was a documentation issue. The tickAnchor works in conjunction with the tickInterval. Why, I don't know. It would seem that the anchor provides a designation of the starting point at which to place ticks, which it does, but only if a tickInterval is set. And the documentation does not indicate this in the description of the anchor or the interval.
This is, however, explained in the tickType, which must be set to TickDynamic for the tickAnchor and tickInterval to have effect.
Side note: I do firmly believe that documentation, especially that for GUI programming, should also have a level of UI/UX design. (Not that that requires a paid consultant, just an awareness of what makes the documentation most useful.) It is the same concept as that for screens. Organize the data in a useful and efficient manner with clear visuals to emphasize key points. I'm sure this is a great opportunity for the creation of a new discipline to come in and tell companies how to write their manuals based off a "new and superior" vision of documentation.
-
Hi,
Looks like the documentation could be improved. You are welcome to submit a patch to make things better :-)