I have 2 series displayed on my chart. I have placed a VerticalLineAnnotation in VerticalSliceModifie to display rollover marker on a series. By default it gets displayed for each series plotted. How can I set it to be displayed only for one of the series?
I tried to set SeriesData Binding Path to specific series, but it did not work.
<visuals:VerticalSliceModifier Name="SliceModifier" ShowAxisLabels="False" ShowTooltipOn="Never" SeriesData="{Binding Path=Series[1]}">
<visuals:VerticalSliceModifier.VerticalLines>
<visuals:VerticalLineAnnotation X1="45"
Y1="80"
Stroke="Red"
StrokeThickness="1"
IsEditable="True"
x:Name="LRed"
ResizeDirections="XDirection"
DragDirections="XDirection"
VerticalAlignment="Bottom">
</visuals:VerticalLineAnnotation>
</visuals:VerticalSliceModifier.VerticalLines>
</visuals:VerticalSliceModifier>
- Anil Soman asked 5 years ago
- last edited 5 years ago
- You must login to post comments
Hi Anil,
We have a page in our documentation which explains exactly how to do this.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 5 years ago
-
That’s exactly I am looking for.. Thanks so much Andrew!
- You must login to post comments
Hi Anil,
This has been asked before here.
There is a property on VerticalSliceModifier called IncludeSeries. If you set it to false on a series, that series will be excluded.
Example:
<s:FastLineRenderableSeries s:VerticalSliceModifier.IncludeSeries="False"/>
The other modifiers such as CursorModifier, RolloverModifier have similar properties to include or exclude series.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 5 years ago
- You must login to post comments
Hi Andrew,
Thanks for your quick reply. In my code, I have bound my series by using ViewModel binding.
<visuals:SciChartSurface Name="SciChart1" BorderBrush="Black" Padding="0"
RenderableSeries="{visuals:SeriesBinding MySeries}" ClipOverlayAnnotations="False"
DataContext="{Binding Path=.}" GridLinesPanelStyle="{StaticResource GridLinesPanelStyle}"
visuals:ThemeManager.Theme="BlackSteel" Margin="0,0,0,23"
Background="#FFFFFF">
There is no separate node available for a series in XAML. In such case, where can I set the property IncludeSeries?
- Anil Soman answered 5 years ago
- last edited 5 years ago
- You must login to post comments
Please login first to submit.