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?
Add line to linecollection
Moderator: Queue Moderators
-
- Posts: 555
- Joined: Mon Mar 14, 2016 9:22 am
Re: Add line to linecollection
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.
For LineCollection you should add/modify Lines field. Check corresponding example (Line Collections) from our Demo.
Hope this helps.
Re: Add line to linecollection
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.
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.