Hi Ivan,
Greetings from Syncfusion, we have analyzed your requirement and you can achieve this by extending LineSeries, overriding CreateSegments method then setting ZIndex for line segment visual as per the below code snippet.
Code snippet
public class CustomLineSeries :LineSeries
{
public override void CreateSegments()
{
base.CreateSegments();
foreach (var segment in Segments)
{
Canvas.SetZIndex(segment.GetRenderedVisual(), 100);
}
}
} |
<local:CustomLineSeries XBindingPath="XValue" StrokeThickness="5"
YBindingPath="YValue" ItemsSource="{Binding Data}">
<local:CustomLineSeries.Trendlines>
<chart:Trendline />
</local:CustomLineSeries.Trendlines>
</local:CustomLineSeries> |
We have prepared a sample based on this, please find the sample from the following location.
Screenshot:
Hope this helps.
Thanks,
Muneesh Kumar G.