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
v0.9.5 Exception in ChartFactory
Re: v0.9.5 Exception in ChartFactory
Oops, forgot to update to j-common v0.7.2.
=)
bernie
=)
bernie