I need to change the default DateTickUnit settings for different zoom levels for a TimeseriesChart, but can´t find the place i need to read in the documentation? I would greatly appreciate a pointer.
Here is the Java API for TimeSeriesChartDemo1: http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/demo/TimeSeriesChartDemo1.html
The zoom levels documentation will be found in one of the inherited methods. I would recommend finding the exact component that requires the zoom to be changed on. Then checking the API for that java.awt component
DateAxis
has two static factories for creating standard date tick units. These methods, createStandardDateTickUnits()
, describe how "to create your own collection." The setTickUnit()
methods replace the default with your own DateTickUnit
. The constructor having a DateFormat
is particularly convenient.
If this is terra incognita, I'd recommend The JFreeChart Developer Guide†.
†Disclaimer: Not affiliated with Object Refinery Limited; just a satisfied customer and very minor contributor.
来源:https://stackoverflow.com/questions/6348122/where-is-datetickunit-documentation