Pre loader

How to show rollover marker for only one series

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

Answered
0
0

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>
Version
3.2
  • You must to post comments
Best Answer
0
0

Hi Anil,

We have a page in our documentation which explains exactly how to do this.

Please see https://www.scichart.com/documentation/v5.x/Worked%20Example%20-%20Bind%20Tooltip%20Templates%20or%20Attached%20Properties%20in%20MVVM.html

Best regards,
Andrew

  • Anil Soman
    That’s exactly I am looking for.. Thanks so much Andrew!
  • You must to post comments
0
0

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?

  • You must to post comments
0
0

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

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies