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?
- l1pton17 asked 10 years ago
- You must login to post comments
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.
- Guest answered 10 years ago
-
i know the difference. Reason why i use the datetimeaxis is because i have a few charts and want full synchronization
- You must login to post comments
Please login first to submit.