Hi Baiss,
All you should have to do is just add a ERPPieChart component to your
WOComponent, eg
MyChart : ERPPieChart {
name = "Monthly Totals";
items = myArray;
nameKey = "name";
valueKey = "amount";
chartType = "PieChart";
}
You can gain a fair bit of flexibility with the "configuration" binding, and
also you can use the "chart" binding on it's own if you already have a
JFreeChart and just want a nice way to include it in your component.
Cheers,
Sharpy
--
Michael Sharp
On 16/12/2009, at 10:52 AM, Baiss Eric Magnusson wrote:
> 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/getsharp%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]