Removing graph segment with all axes and series in it

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Arction_LasseP

SupportArchives
Posts: 16
Joined: Tue Mar 26, 2013 11:01 pm

Removing graph segment with all axes and series in it

Post by SupportArchives » Tue Mar 29, 2016 10:43 am

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 381 times
Segment removing
Segment removing
SegmentRemoving.jpg (213.5 KiB) Viewed 4715 times
After deleting some segments
After deleting some segments
SegmentRemovingAfterDeletingSome.jpg (227.31 KiB) Viewed 4715 times
We hope this helps :)

magla
Posts: 3
Joined: Mon Jan 19, 2015 9:22 am

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

Post by magla » Tue Mar 29, 2016 4:36 pm

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