
I am a total starter with JFreeChart and i think i've got a simple question:
I just want to create a StackedAreaChart.
just for Testing if created a Dataset like this:
Code: Select all
double[][] testData = new double[][] {
{ 1.0, 4.0 }
{ 5.0, 7.0 }};
CategoryDataset dataset = DatasetUtilities.createCategoryDataset(
"Series of Bar", "Type on x", testData);
But i need something like this:
Code: Select all
EXAMPLEDATASET ed = new EXAMPLEDATASET();
ed.add("Series1", "Type 1", 2.5);
ed.add("Series2", "Type 1", 1.0);
ed.add("Series1", "Type 2", 4.2);
ed.add("Series2", "Type 2", 5.0);
I hope anybody could give me the answer...
A Simple Code Example would be fantastic!
Thanks for your help