SwiftChart
SwiftChart copied to clipboard
Subdivisions between vertical/horizontal lines
Currently, I can set the yLabels
property to add horizontal lines to the chart. If I set it to "5", "10" and "15", three horizontal lines are drawn on the chart. But if a data point lies between 5 and 10, it's still quite hard to see whether it is 7 or 8. So maybe you can add a property called subdivisionsBetweenYLabels
that can be set like this:
chart.subdivisionsBetweenYLabels = 5
Now between every y label, three more lines will be drawn to divide the space between the y labels into 5 parts. Now it is very easy to see what the value of a point is.
This is a good idea. Should the "subdivisions" have a different appearance from the main horizontal lines? BTW do you know if in the charts-jargon, "subdivision" is the correct name? I don't like it so much ☺️🤔
The subdivisions should have like a 0.5 alpha on it I think, so they can look like "subdivisions". Or you can make them dotted.
I don't know whether "subdivisions" is the correct name though. I quickly looked at my graphs in Numbers, they seem to do this:

Awesome! Adding this feature soon.