PDA

View Full Version : Ticker / Live Updated Chart



lukaslentner
22 Nov 2011, 4:40 PM
Hi,

I have a chart with a line series and a numeric (Y) and a timeaxis (X). Every second my program adds a record at the end of the store and then I re-set the time constrain dates. The whole thing should look like a ticker (eg. stocks or CPU usage). My problem is now that the markers of the line series don't move to the left side (only in the beginning, when the chart is filled from the right side) but just change their Y-value.

Eg. the most right point should become the second right point, but it stays most right point and just adjusts its value.

How can I program the ticker now to act like a ticker where the markers are flowing to the left?

Thankx
Lukas

mitchellsimoens
23 Nov 2011, 6:41 AM
Have you looked at these examples?

http://docs.sencha.com/ext-js/4-0/#!/example/charts/LiveAnimated.html
http://docs.sencha.com/ext-js/4-0/#!/example/charts/LiveUpdates.html

lukaslentner
23 Nov 2011, 7:01 AM
Yea I have, but didn't understand what makes it going to the left ...

Something with markerIndex??

Please help ;-)

Lukas