• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: JFreeChart/Wonder liftoff success
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JFreeChart/Wonder liftoff success


  • Subject: Re: JFreeChart/Wonder liftoff success
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Thu, 17 Dec 2009 17:14:48 -0800

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: JFreeChart/Wonder liftoff success
      • From: Michael Sharp <email@hidden>
References: 
 >JFreeChart/Wonder liftoff (From: Baiss Eric Magnusson <email@hidden>)
 >Re: JFreeChart/Wonder liftoff (From: Michael Sharp <email@hidden>)

  • Prev by Date: Re: ERXWOFileUpload / AjaxSubmitButton - filePath and data bindings empty
  • Next by Date: Re: JFreeChart/Wonder liftoff success
  • Previous by thread: Re: JFreeChart/Wonder liftoff
  • Next by thread: Re: JFreeChart/Wonder liftoff success
  • Index(es):
    • Date
    • Thread