How to auto set DateAxis's tick unit to the smallest one

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
alsw-2000
Posts: 16
Joined: Thu May 22, 2003 12:53 pm

How to auto set DateAxis's tick unit to the smallest one

Post by alsw-2000 » Thu May 29, 2003 5:21 am

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

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu May 29, 2003 4:38 pm

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

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked