For a dataset how can we get the axis minimum, maximum, major units, & minor units that re the default for that set of data?
thanks - dave
get axis min/max/major/minor
-
- Posts: 106
- Joined: Fri May 27, 2005 7:44 pm
- Location: Boulder, CO
- Contact:
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: get axis min/max/major/minor
You can read this data from the chart's axes, but only after the chart has been drawn - add a ChartProgressListener to the chart, then when you get the event notification saying that drawing is finished, read the values.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- Posts: 106
- Joined: Fri May 27, 2005 7:44 pm
- Location: Boulder, CO
- Contact:
Re: get axis min/max/major/minor
That will work - we can draw to an off-screen bitmap to get it.
thanks - dave
thanks - dave
-
- Posts: 106
- Joined: Fri May 27, 2005 7:44 pm
- Location: Boulder, CO
- Contact:
Re: get axis min/max/major/minor
Does JFreeChart have the concept of minor (as opposed to major) tickmarks? It seems like it does not.
??? - thanks - dave
??? - thanks - dave
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: get axis min/max/major/minor
There is support for minor tick marks on the axes since 1.0.12.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

