v0.9.5 Exception in ChartFactory

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

v0.9.5 Exception in ChartFactory

Post by Bernie » Thu Feb 13, 2003 4:15 am

Hi,

I tried to create a stacked bar chart by

DefaultCategoryDataset cDataset = new DefaultCategoryDataset ();
cDataset.addValue(new Integer(0), new Integer(0), new Integer(0));
cDataset.addValue(new Integer(1), new Integer(1), new Integer(1));
JFreeChart chart = ChartFactory.createStackedVerticalBarChart ("testTitle", "domainLabel", "rangeLabel", cDataset, true, false, false);

but it gave me the following exception:

Servlet Error: com.jrefinery.chart.JFreeChartInfo: method setName(Ljava/lang/String;)V not found: java.lang.NoSuchMethodError: com.jrefinery.chart.JFreeChartInfo: method setName(Ljava/lang/String;)V not found
at com.jrefinery.chart.JFreeChartInfo.<init>(Unknown Source)
at com.jrefinery.chart.JFreeChart.<clinit>(Unknown Source)
at com.jrefinery.chart.ChartFactory.createStackedVerticalBarChart(Unknown Source)
...


Any idea? Thank you.


Bernie

Bernie

Re: v0.9.5 Exception in ChartFactory

Post by Bernie » Thu Feb 13, 2003 4:45 am

Oops, forgot to update to j-common v0.7.2.

=)


bernie

Locked