ChartFactory for 0.9.4

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Hiroko Miyawaki

ChartFactory for 0.9.4

Post by Hiroko Miyawaki » Mon Oct 21, 2002 5:02 am

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.

Dave Gilbert

Re: ChartFactory for 0.9.4

Post by Dave Gilbert » Mon Oct 21, 2002 8:49 am

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.

Locked