This content has been marked as final. Show 6 replies
Where is it failing?
You have kind of a mess there. Simplify the code while you debug the calls. Get rid of the useHTTPService function for now, declare result and fault handlers.
Debug and trace the result.
When I debug the code I can see the dataProvider for the Chart being populated with the correct data, but that not being passed to the Line. What I'm etting at is that it looks like the data is bing passed correctly from the httpService to the dataReceived function.
One thing Ive being thinking about is why I can no longer use the lastResult setting?
So the problem is NOT with the HTTPService?
Can you display your chart with hard-coded data?
"lastResult" should only be used with binding expressions.
Use event.result in a result handler.
Ok, the problem was with how I was using the LineSeries
var newSeries:Array = new Array;
var Line:LineSeries = new LineSeries;
Line.yField = "CO2_BDROOM";
Line.displayName = "junk";
Chart.series = newSeries;