Urgen: label donot fix in bar chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
khanhtran
Posts: 5
Joined: Mon Jul 17, 2006 3:34 am

Urgen: label donot fix in bar chart

Post by khanhtran » Wed Sep 20, 2006 4:36 am

Please see the image and give me some advice. Thanks.
Image

develop
Posts: 296
Joined: Wed Mar 23, 2005 10:01 pm

Post by develop » Wed Sep 20, 2006 3:04 pm

i think you can set the itemMargin(...) to get rid of this problem.

Thanks

vuj2010
Posts: 11
Joined: Fri Apr 07, 2006 11:54 pm

Set domain

Post by vuj2010 » Wed Sep 20, 2006 11:42 pm

You could also control your valueaxis this way:
m_valueAxis1.setLowerBound(yourMin);
m_valueAxis1.setUpperBound(yourMax);
m_valueAxis1.setAutoRangeIncludesZero(false);

Locked