2D Vertical Bar Chart

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

2D Vertical Bar Chart

Post by Tony » Thu Oct 03, 2002 9:10 am

Hi all,

I would like to know how to set the font size of 2D Vertical Bar Chart. I have set like the following but there is no effect,

// Vertical Bar Chart
JFreeChart tempChart = ChartFactory.createVerticalBarChart(strTitle,
strCatTitle, strValTitle, categoryData, true);

CategoryPlot plot = tempChart.getCategoryPlot();
plot.setLabelFont(sectionFont);


Pls help~!

Tony

David Gilbert

Re: 2D Vertical Bar Chart

Post by David Gilbert » Fri Oct 04, 2002 5:31 pm

The setLabelFont(...) method controls the font used to display value labels drawn on each bar (if they are visible).

There are lots of other setXXXFont methods distributed around the various classes, which one you need depends on what you are trying to change.

Regards,

DG

Tony

Re: 2D Vertical Bar Chart

Post by Tony » Mon Oct 07, 2002 9:50 am

Thx for ur help, DG. I have tried setting it. However, it doesn't work. Do you know any other way to achieve this?

Tony

Locked