how set gap between series

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
sdotolo
Posts: 4
Joined: Mon Jul 19, 2004 4:31 pm

how set gap between series

Post by sdotolo » Mon Jul 19, 2004 4:42 pm

Hi, i'm facing with problem of how setting gap between series on a jfreechart chart that is not the default behaviour that seems to left too much space. For example i wish to set to 1px this gap for a barchart graph with 2 or more series. To set gap between categories i think (correct me if wrong!) to set

setCategoryMargin(double v) and this seem to work. But at now no method about setting gap between series was found in the classes.

I'm studing the JfreeChart project expecially as a end-user developer (not core-jfreechart developer) and so in the lack of a suitable manual it's difficult to me to achieve the right results in time, so if possible can someone help me about this (trivial!...) problem?

thanks in advance.

angel
Posts: 899
Joined: Thu Jan 15, 2004 12:07 am
Location: Germany - Palatinate

Re: how set gap between series

Post by angel » Tue Jul 20, 2004 7:24 am

sdotolo wrote: I'm studing the JfreeChart project expecially as a end-user developer (not core-jfreechart developer) and so in the lack of a suitable manual it's difficult to me to achieve the right results in time, so if possible can someone help me about this (trivial!...) problem?
Stop crying and buy the developers guide.

This might help you:

Code: Select all

renderer.setItemMargin(0.10);

Locked