Hi Baiss

I use JFreeChart with some success on PieChart, but not on ERPPieChart. I am not sure if this could be of help. I have created an array to hold the NSMutableArray passing in and later convert them to dataset, _dataset. Then have this method to call to generate the chart:
   protected JFreeChart createChart(){
JFreeChart chart = ChartFactory.createPieChart(titleLabel, // chart title _dataset, // data true, // include legend
                                                      true,
                                                      false
                                                      );
       PiePlot plot = (PiePlot) chart.getPlot();
       plot.setBackgroundPaint(Color.lightGray);
       return chart;
   }

HTH.

Cheers

Cheong Hee

----- Original Message ----- From: "Baiss Eric Magnusson" <[email protected]>
To: "WebObjectsDev" <[email protected]>
Sent: Wednesday, December 16, 2009 8:52 AM
Subject: JFreeChart/Wonder liftoff


I was wondering if anyone can help with the use of ERPPieChart from ERPlot as I replace the various plots in the WO project I'm converting, it's also an introduction to Wonder for me.

I have a NSMutableArray of references to instances of an inner class <TotalOfMonth> which has the values: (amount, name, color);

Starting, I see I do:

ERPPieChart erPieChart = new ERPPieChart( this.context() );

// how can I best pass the values in the NSMutableArray to the dataset inside <erPieChart?> // I have ERPlot Framework in /Library/Frameworks on MacOSX but I can't seem to step into ERPPieChart

JFreeChart jfc = erPieChart();

Previously I had done arcFillCenter, drawRect, etc. for the constructing of the chart with a long-deprecated java plot package, this seems antiquated.

At what point do I stop looking at the routines in ERPieChart and look at the routines in JFreeChart, I have its 950 page reference document plus some source code.


----
Baiss Eric Magnusson
http://www.CascadeWebDesign.com



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chng34%40gmail.com

This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to