curious, haveyou tried given
<mx:PlotChart id="investment_chart" />
some height and width? Just a long shot....
Also, I'd add some trace() in to see for sure if the data is there as
expected.
trace( '*e.result.cashflow.length is ' + **e.result.cashflow.length)
assuming its supposed to have a length. Or even
trace(**e.result.cashflow.toXMLString()); to make sure its all there
assuming XML use.
Basically verify 100% your data is coming in as expected.
DK
*
On Jan 24, 2008 6:05 PM, <[EMAIL PROTECTED]> wrote:
> I am trying to create a graph that charts cashflows for each investment.
> Depending on the user there are a different number of investments. So this
> function is run for each investment. Because I do a messateService request
> from the web server for each investment.
>
> * private function onGetCashflows(e:ResultEvent):void*
>
> * {*
>
> * var new_series:PlotSeries=new PlotSeries();*
>
> * new_series.xField="contr_date";*
>
> * new_series.yField="contr_value";*
>
> * var series:ArrayCollection=new ArrayCollection([]);*
>
> * if (e.result.cashflow.length > 0)*
>
> * {*
>
> * var idx:int=findInvestmentIdx(e.result.cashflow
> [0].investment_id,investments);*
>
> * if (idx == -1)*
>
> * {*
>
> * return;*
>
> * }*
>
> * var series_name:String =e.result["inv_name"];*
>
> * *
>
> * new_series.dataProvider=e.result.cashflow;*
>
> * investment_chart.series.push(new_series);*
>
> * *
>
> * }*
>
> * *
>
> * }*
>
> The MXML for the chart looks like this.
>
> <mx:PlotChart id="investment_chart" />
>
>
>
> The chart is just not being generated even though I can tell it is being
> run in the debugger.
>
>
>
> I've done charts before using fixed number of series and using
> *dataProvider='{variable}'
> * but I am really stuck on this.
>
> Any help would be appreciated.
>
>
>
> ·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´
>
> Tommie Jones
>
> Team Supervisor
>
> Sunrise Telecom - We Make Networks Work
>
> Office +1 678.808.3615
>
> This message may contain confidential and/or privileged information. If
> you are not authorized to receive this, please advise the sender immediately
> by reply e-mail and delete this --------------------
>
> -------------------------------------------------------------
> To unsubscribe from this list, simply email the list with unsubscribe in
> the subject line
>
> For more info, see http://www.affug.com
> Archive @ http://www.mail-archive.com/discussion%40affug.com/
> List hosted by FusionLink <http://www.fusionlink.com>
> -------------------------------------------------------------
--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?
-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the
subject line
For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------