Awesome magic, I got a chart to draw, see below:
********************************************
public class TotalOfMonth { // inner class
public BigDecimal _total;
public String _name;
public Color _color;
TotalOfMonth( BigDecimal total, String name, Color color ) {
_total = total;
_name = name;
_color = color;
mTotalsGraph += total.doubleValue();
}
}
public NSMutableArray<TotalOfMonth> generateGraphPie() {
...
totals.addObject( new TotalOfMonth( thisMonth.fixedMonthlyExpense(), "Fixed
Expense", fixedExpColor ));
return totals;
}
********************************************
PieGraph : ERPPieChart {
name = "Monthly_Totals";
items = generateGraphPie;
nameKey = "_name";
valueKey = "_total";
chartType = "PieChart";
}
How does the BigDecimal get absorbed by the attribute <items=generateGraphPie>
of <ERPPieChart>?
I haven't utilized color yet, default was pink!
On Dec 15, 2009, at 8:20 PM, Michael Sharp wrote:
> Hi Baiss,
>
> All you should have to do is just add a ERPPieChart component to your
> WOComponent, eg
> ...
> 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
> 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.
>>
----
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/archive%40mail-archive.com
This email sent to [email protected]