Dear all,
I want to set a HorizontalDateAxis with the tick unit as small as possible, but the text won't overlap. Is there any function to do that?
I find that there is a setSkipCategoryLabelsToFit function for HorizontalCategoryAxis, is there any similar function for HorizontalDateAxis ?
Cheers,
alsw-2000
How to auto set DateAxis's tick unit to the smallest one
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
JFreeChart choosest the smallest tick unit in the "standard" collection that doesn't result in overlapping labels. You can define the "standard" tick units using the setStandardTickUnits(...) method.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

