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
Post a Comment