Hi, I am trying to speed up a Flex/AS mobile application.

As it stands, the lineChart (100 points) has a binding to an
arrayCollection.

What I add a point, I also remove the first element in the array and change
the minimum x-axis value to simulate a scrolling chart.

Now the data is supplied from the accelerometer.
Without showing the live chart my accelerometer sample rate is about 60Hz.

When I show my mxml lineChart it is about 9Hz.


I'm hoping an AS version of the lineChart will allow a faster sampling rate?

Problem is the AS chart does not display any data (just x and y axis) in
the panel.
This is my foray into charts in AS, so I'm assuming it's a binding issue?

I have:

*            lineChart = new LineChart();*
*            lineSeries = new LineSeries();*

*            lineChart.dataProvider = zArrayColl; *
*            lineChart.percentWidth = 100;*
*            lineChart.percentHeight = 100;*
*            lineChart.x = 100;*
*            lineChart.y = 85;*
*            lineChart.showDataTips = true;*
*            lineSeries.xField = "myTime";*
*            lineSeries.yField = "zAccel";*

*            lineSeries.xField = "myTime";*
*            lineSeries.yField = "zAccel";*

And in creationCompete:
*            BindingUtils.bindProperty(lineSeries,"text", zArrayColl,
"text");*


I'm not at all sure if this is the correct approach.
If so, what the hell do I put in the "text" fields?

Also, will this speed up the chart significantly? If not, any ideas on how
to improve this to increase the sampling rate?

Phew

Well, help with this (ideas or specifics) would be greatly appreciated.

Phil.


-- 
Philip Medlam

Reply via email to