VerticalXYBarChart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Dave

VerticalXYBarChart

Post by Dave » Mon Mar 25, 2002 10:58 pm

I am having difficulties manipulating the bars using a VerticalXYBarChart. I would like to make the bars bigger and closer together. To make the bars bigger I assumed that I should use setSeriesStroke but when I do that there does not seem to be any change.

Is it possible to make the bars bigger and closer using a VerticalXYBarChart? How can I achieve this. Thanks.

David Gilbert

Re: VerticalXYBarChart

Post by David Gilbert » Tue Mar 26, 2002 6:09 pm

The VerticalXYBarRenderer class draws bars where the bar width is determined by the data values passed to the renderer via the IntervalXYDataset. The getStartXValue(...) method gives the left edge of the bar, the getEndXValue(...) method gives the right edge of the bar.

So to change the size of the bars, you actually have to change the dataset you are plotting...but only for the XY bar plot, the bar plots based on the CategoryDataset are different.

Ask some more if you need clarification...

Regards,

DG.

Locked