Joining vertical bars of same category label

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
nilesh
Posts: 20
Joined: Wed May 21, 2003 10:56 am
Contact:

Joining vertical bars of same category label

Post by nilesh » Tue Jul 08, 2003 7:24 am

I have got two vertical bars (e.g. blue and red) for a category say 2001 and so on for 2002, 2003 years. My graph is coming up such that all bars are evenly distributed.
I need to join(or very close) blue and red bars for year 2001 and the similar with 2002 and so on.

How can I implement it ?

Plz help

Thanks

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 » Tue Jul 08, 2003 3:33 pm

Try the setItemMargin(...) method in the BarRenderer class.
David Gilbert
JFreeChart Project Leader

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

Locked