Pre loader

Chart with stock and datetimeaxis

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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: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?

  • You must to post comments
0
0

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.

  • 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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies