Page 1 of 1

Removing graph segment with all axes and series in it

Posted: Tue Mar 29, 2016 10:43 am
by SupportArchives
Many have asked how to remove axis segment and update the axis and series references. Here's an example that shows how to remove a specific graph segment, with axes and series in that specific segment.
RemovingGraphSegment.zip
VS project
(8.81 KiB) Downloaded 565 times
Segment removing
Segment removing
SegmentRemoving.jpg (213.5 KiB) Viewed 6126 times
After deleting some segments
After deleting some segments
SegmentRemovingAfterDeletingSome.jpg (227.31 KiB) Viewed 6126 times
We hope this helps :)

Re: Removing graph segment with all axes and series in it

Posted: Tue Mar 29, 2016 4:36 pm
by magla
OK, thanks. We were missing the update to the series AssignYAxisIndex.

A strange thing is though that when we do exactly this, minus the AssignYAxisIndex update, for PointLIneSeries only it works just fine. Do we need to do this for the IntensityGridSeries only or should we do it for the PointLineSeries also, lest something strange may happen? (we are not using the nifty Tag-technique in the example, since we already use the Tag for other stuff, so it requires some extra code)

Another question is why updating the AssignYAxisIndex is necessary at all for the SDK-user? In my mind we had already assigned the series to a Y-axis, and keeping track of the index could/should be LightningChart-internal housekeeping?

Thanks again,
Magnus