Pre loader

Select a part of the series between two dates


Hello Team,

I am evaluating Sci Chart for using in our production applications. I am creating a POC for the same if it fits our requirements.

I have created a scattered chart successfully. Our next requirement is to select a part of the chart, basically, like data from this date to this date. I was trying to explore VerticalSlice Modifier for it. My purpose was that the user will place the sliders on the start date and end date and we will get those values. Can you tell me if this approach is correct or suggest a different technique, annotation or marker, any other modifier to select data between two dates?

<Grid Grid.Row="1">
        <s:SciChartSurface s:ThemeManager.Theme="BrightSpark">
                    <s:VerticalSliceModifier Name="sliceModifier">
                            <s:VerticalLineAnnotation X1="{Binding SelectedStartDate, Mode=TwoWay}" IsEditable="True"/>
                            <s:VerticalLineAnnotation X1="{Binding SelectedEndDate, Mode=TwoWay}" IsEditable="True"/>
                <s:DateTimeAxis AxisTitle="Number of Samples (per Series)"/>
                <s:NumericAxis AxisTitle="Value"/>
                <s:XyScatterRenderableSeries x:Name="scatterSeries" Stroke="OrangeRed" DataSeries="{Binding Chirps}">
                        <s:EllipsePointMarker Width="9" Height="9" Fill="SteelBlue" Stroke="LightSteelBlue" StrokeThickness="2"/>

Thanks for the help and support

  • You must to post comments

Hi Richa,

Thanks for your inquiry. I am sorry for the late reply.

There are several approaches that can be used. The easiest way to achieve this is to set the SelectedPointMarker property on your ScatterSeries. Then, you can use PointMetadata to select any point in DataSeries and it will be rendered as SelectedPointMarker. Please take a look at our documentation about PointMetadata at this link:

Another approach is to use PaletteProvider to override the colour of any point:

This approach is demoed in our “Using PaletteProvider Example”:

Please try any of these and let me know if it meets your requirements.

  • You must to post comments
Showing 1 result
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