SwiftChart icon indicating copy to clipboard operation
SwiftChart copied to clipboard

Subdivisions between vertical/horizontal lines

Open Sweeper777 opened this issue 8 years ago • 3 comments

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.

Sweeper777 avatar Dec 08 '16 07:12 Sweeper777

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 ☺️🤔

gpbl avatar Dec 14 '16 01:12 gpbl

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:

screen shot 2016-12-14 at 8 19 42 am

Sweeper777 avatar Dec 14 '16 08:12 Sweeper777

Awesome! Adding this feature soon.

gpbl avatar Feb 12 '17 15:02 gpbl