could not get change in the width of bars

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

could not get change in the width of bars

Post by Muneer » Wed May 15, 2002 3:42 pm

Hi,

Thanks everybody for helping me with replies to earlier answers,

As for chaniging the width of bars,

I have modified the code as follows,Its compiling but not generating graph, instead giving errors,If i remove comment from the first line & comment out the 2 and 3rd line then its compiling as well as generating the graph well, can u tell where am i going wrong.

This is for verticalbar chart.

//Plot bPlot = chart.getPlot();
CategoryPlot bPlot = chart.getCategoryPlot();
bPlot.setIntroGapPercent(0.1);
HorizontalCategoryAxis cAxis = (HorizontalCategoryAxis)bPlot.getAxis(Axis.HORIZONTAL);
cAxis.setVerticalCategoryLabels(true);
return chart;

Thanks in advance

David Gilbert

Re: could not get change in the width of bars

Post by David Gilbert » Wed May 15, 2002 10:30 pm

It could be the version of JFreeChart you are using? Is it 0.8.1? My guess is that you are using an earlier version...

DG.

Muneer

Re: could not get change in the width of bars

Post by Muneer » Thu May 16, 2002 4:58 pm

but i have downloaded it just few days ago....
and yah it is 0.8.1 and jcoomon is 0.6.1

David Gilbert

Re: could not get change in the width of bars

Post by David Gilbert » Thu May 16, 2002 5:11 pm

I tried the code and it runs for me...do you want to post the text of the exception that gets reported?

Regards,

DG.

Locked