Animate new data insertion in core-plot (iOS) -


i trying animate "drawing" of new data using cptscatterplot objects.

i looking @ realtime example can find here in examples subdirectory. 1 of example of coreplotgallery. make sure use ios one.

this realtime plot pretty simple: injects random data in graph every second. trying accomplish animate drawing of line seems line being drawn realtime.

if take close @ example, notice "segments" appear in chart new data inserted it. how can animate "creation" of segments?

thank you

until added natively core plot (see this outstanding issue), use timer animate line. each time timer fires, use -reloaddatainindexrange: method update last point on line, moving closer final value each time.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -