Page 1 of 1

Add line to linecollection

Posted: Thu Aug 23, 2018 7:03 pm
by michel
I want to use a linecollection in a realtime chart so I need to add lines when data comes in.
All other series have functionality to do that (AddPoints, AddValues etc.) but I cannot find anything for linecollections....

What should I use?

Re: Add line to linecollection

Posted: Fri Aug 24, 2018 11:01 am
by ArctionKestutis
If you want to put Mark, it is probably more suitable to use SeriesEventMarkers, ChartEventMarkers or Annotations. The usage is illustrated in our Demo App example "High-speed data, stacked axes" (press/check 'Marker', 'Series marker' buttons from top menu).

For LineCollection you should add/modify Lines field. Check corresponding example (Line Collections) from our Demo.

Hope this helps.

Re: Add line to linecollection

Posted: Fri Aug 24, 2018 11:49 am
by michel
I really need the linecollection since i'm adding a lot of lines (bars of 1 pixel) and was told this was probably the most efficient way to do this.
The question is: Can I add a new SegmentLine to an existing linecollection?

The linecollection works perfect in a static chart but I have a new requirement to handle realtime incoming data so I need to add new lines to the existing linecollection that i'm displaying. I've checked the linecollection demo but that's just
static data.