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


I have a panel with two charts, that contains a OhlsDataSeries and theirs XAxis is DateTimeAxis. When it zooms i see a something strange:
strange stretch

My code:

<s:SciChartSurface SeriesSource="{Binding ChartSeriesViewModels}"
                   s:SciChartGroup.VerticalChartGroup="{Binding Parent.VerticalChartGroupId}"
                   ViewportManager="{Binding Parent.ViewportManager}">
        <s:ModifierGroup s:MouseManager.MouseEventGroup="23">
            <s:ZoomPanModifier ExecuteOn="MouseLeftButton"/>
            <s:MouseWheelZoomModifier />
            <s:CursorModifier ShowAxisLabels="True" UseInterpolation="False" UseLayoutRounding="True"  ReceiveHandledEvents="True"/>
            <s:ZoomExtentsModifier ExecuteOn="MouseDoubleClick"/>

        <s:DateTimeAxis VisibleRange="{Binding Parent.VisibleRange, Mode=TwoWay}"
                        TextFormatting="hh:mm dd.MM.yyyy"
                        GrowBy="0.0, 0.1"/>

        <s:NumericAxis AutoRange="Always"
                       GrowBy="0.1, 0.1"/>


And second question:
Is there any way to make the cursor sticks to the points?

  • You must to post comments


You should try CategoryDateTimeAxis instead. The reason is that the DateTimeAxis is a value axis but you need a category one. Please, take a look at this Knowledgebase article to learn more about the difference.

  • l1pton17
    i know the difference. Reason why i use the datetimeaxis is because i have a few charts and want full synchronization
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.