SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android 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:
My code:
<s:SciChartSurface SeriesSource="{Binding ChartSeriesViewModels}"
s:SciChartGroup.VerticalChartGroup="{Binding Parent.VerticalChartGroupId}"
ViewportManager="{Binding Parent.ViewportManager}">
<s:SciChartSurface.ChartModifier>
<s:ModifierGroup s:MouseManager.MouseEventGroup="23">
<s:ZoomPanModifier ExecuteOn="MouseLeftButton"/>
<s:MouseWheelZoomModifier />
<s:CursorModifier ShowAxisLabels="True" UseInterpolation="False" UseLayoutRounding="True" ReceiveHandledEvents="True"/>
<s:YAxisDragModifier/>
<s:XAxisDragModifier/>
<s:ZoomExtentsModifier ExecuteOn="MouseDoubleClick"/>
</s:ModifierGroup>
</s:SciChartSurface.ChartModifier>
<s:SciChartSurface.XAxis>
<s:DateTimeAxis VisibleRange="{Binding Parent.VisibleRange, Mode=TwoWay}"
TextFormatting="hh:mm dd.MM.yyyy"
DrawMajorBands="True"
GrowBy="0.0, 0.1"/>
</s:SciChartSurface.XAxis>
<s:SciChartSurface.YAxis>
<s:NumericAxis AutoRange="Always"
GrowBy="0.1, 0.1"/>
</s:SciChartSurface.YAxis>
</s:SciChartSurface>
And second question:
Is there any way to make the cursor sticks to the points?
Hi,
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.
Please login first to submit.