Hi all,
i facing the problem while using XYShapeRenderer. here is the code and error i facing.
DefaultXYDataset set = new DefaultXYDataset();
set.addSeries("Values",new double[][]{{1,2,3.25,4,5},{10,15,8,37,23}});
NumberAxis xAxis = new NumberAxis("x Axis");
NumberAxis yAxis = new NumberAxis("y Axis");
XYPlot plot = new XYPlot(set, xAxis, yAxis, null);
XYShapeRenderer r = new XYShapeRenderer();
r.setPlot(_plot);
plot.setRenderer(r);
r.setToolTipGenerator(new StandardXYToolTipGenerator());
_chart = new JFreeChart("Chart Title",JFreeChart.DEFAULT_TITLE_FONT,plot,true);
_chart.removeLegend();
NumberAxis scaleAxis = new NumberAxis("New Scale");
scaleAxis.setUpperBound(250000);
scaleAxis.setAxisLinePaint(Color.white);
scaleAxis.setTickMarkPaint(Color.white);
scaleAxis.setTickLabelFont(new Font("Dialog", Font.PLAIN, 12));
ERROR CODE:
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: org.jfree.chart.renderer.xy.XYShapeRenderer.setAutoPopulateSeriesShape(Z)V
at org.jfree.chart.renderer.xy.XYShapeRenderer.<init>(XYShapeRenderer.java:141)
I hope anyone can help me, as i've been struggling for this problem for a week ..
XYShapeRenderer Problem
-
- Posts: 2
- Joined: Sat May 07, 2011 7:44 am
- antibot: No, of course not.