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.
how set gap between series
Re: how set gap between series
Stop crying and buy the developers guide.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?
This might help you:
Code: Select all
renderer.setItemMargin(0.10);