Hi all.
I downloaded jfreechart_0.9.4,and I run my program.
When I complied my program, a warning message (ChartFactory does not recommended) occurded.
The warning sentence is bellow.
JFreeChart chart1 = ChartFactory.createXYChart("title", "age", "weight", data1, true);
Does somone show me alternate code.
Regards.
Hiroko.
ChartFactory for 0.9.4
Re: ChartFactory for 0.9.4
Hi Hiroko,
I renamed the method createLineXYChart, so now you have these methods:
createLineChart(...) - uses a CategoryDataset;
createLineXYChart(...) - uses an XYDataset;
createAreaChart(...) - uses a CategoryDataset;
createAreaXYChart(...) - uses an XYDataset;
I'm hoping the new names are more consistent. You can still use the old name (for now), it has just been deprecated. I'll probably remove it for version 1.0.0, whenever that happens.
Regards,
DG.
I renamed the method createLineXYChart, so now you have these methods:
createLineChart(...) - uses a CategoryDataset;
createLineXYChart(...) - uses an XYDataset;
createAreaChart(...) - uses a CategoryDataset;
createAreaXYChart(...) - uses an XYDataset;
I'm hoping the new names are more consistent. You can still use the old name (for now), it has just been deprecated. I'll probably remove it for version 1.0.0, whenever that happens.
Regards,
DG.