gujjula / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

Axis Labeling Algorithm that Divides range into equal intervals #254

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The current automatic labeling algorithm leads to nice round numbers, but some 
people want to ensure there is a tick at the end of the range. A equally-spaced 
algorithm could be added for this, which simply divides up the range into equal 
intervals, and does not attempt to fix them at any nice round numbers.

Original issue reported on code.google.com by drewmcco...@mac.com on 7 Feb 2011 at 12:58

GoogleCodeExporter commented 9 years ago
You can already do this with CPAxisLabelingPolicyFixedInterval. You just need 
to calculate the labelingOrigin and majorIntervalLength yourself. It would be 
easy to add another labeling policy that does those calculations automatically.

Original comment by eskr...@mac.com on 7 Feb 2011 at 10:01

GoogleCodeExporter commented 9 years ago
Yes, even though it is not very difficult now, it may be an idea to add a new 
policy to support this, because it is very common (eg Google Charts).

Original comment by drewmcco...@mac.com on 8 Feb 2011 at 1:19

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 81d6edf5470a.

Original comment by eskr...@mac.com on 3 Jul 2011 at 8:12