How to get space below 0 on graph with auto range ?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
aloleary
Posts: 20
Joined: Wed Mar 26, 2003 4:32 pm
Location: Dublin, Ireland

How to get space below 0 on graph with auto range ?

Post by aloleary » Fri Jan 16, 2004 1:07 pm

It seems that auto range sets a minimum of >0.0

I need a way to get from GraphA (current) :
Image

To GraphB (desired) :
Image

Note the space in graph B that shows the 0 data better

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 » Fri Jan 16, 2004 7:24 pm

Zero is treated as a special value in the auto range calculation. Try the setAutoRangeStickyZero(boolean) method to change the default from true to false.
David Gilbert
JFreeChart Project Leader

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

Locked