Post
by Ben Sky » Tue Aug 13, 2002 3:43 pm
Hi,
now I did it with a OverlaidXYPlot,
but my problem is now the Color, I can't set the line on the same color as the
boxes.
Is there anything to change this??
I allready tried something like that, but it did not work:
JFreeChart chart = ChartFactory.createScatterPlot("",X,Y,data,true);
chart.getPlot().setSeriesPaint(new Paint[]{Color.red});
JFreeChart chart2 = ChartFactory.createScatterPlot("",X,Y,data,true);
chart2.getPlot().setSeriesPaint(new Paint[]{Color.red});
OverlaidXYPlot plot = new OverlaidXYPlot(X,Y);
plot.add(chart);
plot.add(chart2);
JFreeChart mainchart = new JFreeChart("",JFreeChart.DEFAULT_TITLE_FONT,plot,true);
mainchart.getPlot().setSeriesPaint(new Paint[]{Color.red});
THX for all help!
Ben Sky