SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

0
0

I need to set the style of the ellipse on my VerticalSliceModifier (and make it a custom color etc)

                <s:VerticalSliceModifier ShowTooltipOn="Never" Foreground="White" Name="sliceModifier">
                    <s:VerticalSliceModifier.VerticalLines>
                        <s:VerticalLineAnnotation X1="{Binding Number}" Style="{StaticResource sliceStyle}" />
                    </s:VerticalSliceModifier.VerticalLines>
                </s:VerticalSliceModifier>

However my series is created in code as a MountainRenderableSeriesViewModel and bound to the chart via SeriesBinding

    <s:SciChartSurface
        Grid.Row="1"
        Background="Transparent"
        BorderThickness="0"
        RenderableSeries="{s:SeriesBinding Series}"
        Annotations="{s:AnnotationsBinding Annotations}">

All the examples I’ve seen use the RolloverMarkerTemplate and define it under as a child node under BaseRenderableSeries or FastLineRenderableSeries, but I cannot find how to assign this to a series when it is defined in a ViewModel and assigned as above.

I’m new to SciChart and any help on this would be great.
Thanks

Version
6.3.0
  • You must to post comments
0
0

Hi Niamh,

Check out this worked example on how to apply a style to a series when using MVVM.

You can use this method to apply a RolloverMarkerTemplate to a series when using SeriesBinding.

Let me know if this helps!

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.