Hi,
I have a chart that shows X-und Y-Axis . But I would like to set the TickUnit dynamically.
Wenn I have much data the TickUnit must be like( setTickUnit(new NumberTickUnit( 50 , new DecimalFormat("0")));
with not much data instead of 50 , I would like somethings like 5 or 10 .
(setTickUnit(new NumberTickUnit(10, new DecimalFormat("0")));
Best Regards
Christelle
Scaling TickUnit in x and y axis.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
This is handled by default. If you don't like the "auto selected" units, you can change the list of candidates using the setStandardTickUnits() method in the ValueAxis class.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

