Add line to linecollection

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
michel
Posts: 10
Joined: Wed Jun 29, 2016 3:34 pm

Add line to linecollection

Post by michel » Thu Aug 23, 2018 7:03 pm

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?

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

Re: Add line to linecollection

Post by ArctionKestutis » Fri Aug 24, 2018 11:01 am

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.

michel
Posts: 10
Joined: Wed Jun 29, 2016 3:34 pm

Re: Add line to linecollection

Post by michel » Fri Aug 24, 2018 11:49 am

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.

Post Reply