Hi there.... How can I fill up shapes that represend data point plot..... control the size of them ..... an example would be nice.
Thanx in advance,
Bjarni
Shapes
Re: Shapes
There is an example in the TimeSeriesDemo.java source file:
JFreeChart chart = ChartFactory.createTimeSeriesChart(chartTitle, "Date", "Price Per Unit",
dataset, true);
XYPlot plot = chart.getXYPlot();
XYItemRenderer renderer = plot.getRenderer();
if (renderer instanceof StandardXYItemRenderer) {
StandardXYItemRenderer r = (StandardXYItemRenderer) renderer;
r.setPlotShapes(true);
r.setDefaultShapeFilled(true);
r.setDefaultShapeScale(5.0);
}
Regards,
DG
JFreeChart chart = ChartFactory.createTimeSeriesChart(chartTitle, "Date", "Price Per Unit",
dataset, true);
XYPlot plot = chart.getXYPlot();
XYItemRenderer renderer = plot.getRenderer();
if (renderer instanceof StandardXYItemRenderer) {
StandardXYItemRenderer r = (StandardXYItemRenderer) renderer;
r.setPlotShapes(true);
r.setDefaultShapeFilled(true);
r.setDefaultShapeScale(5.0);
}
Regards,
DG