Pre loader

Format AxisLabel of CursorModifier

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

Hi,

I’m using the CursorModifier to show the x and y values of the cursor.

            <SciChart:SciChartSurface.ChartModifier>
                <SciChart:ModifierGroup>
                    <SciChart:CursorModifier ShowTooltip="False" ShowAxisLabels="True" Cursor="Arrow"/>
                </SciChart:ModifierGroup>
            </SciChart:SciChartSurface.ChartModifier>

How can I change the format of the labels so it will display 8.1 instead of 8?

Thanks,
Egbert

  • You must to post comments
0
0

Hi Egbert,

Please, try to set AxisBase.CursorTextFormatting to proper formatting string, e.g. YAxis.CursorTextFormatting=”#0.0″.

Hope this helps!

Best regards,
Yuriy

  • EJansen
    Hi, I'm setting this property in xaml, but it still doesn't work.
                   <!-- Create a Y Axis -->
                    <SciChart:SciChartSurface.YAxes>
                        <SciChart:NumericAxis TickTextBrush="#FF4083B7" AxisAlignment="Left" AutoRange="False" DrawMinorTicks="False" DrawMinorGridLines="False" TextFormatting="0" CursorTextFormatting="#0.0" AxisTitle="()" FlipCoordinates="True" VisibleRange="{Binding Path=TimeYAxisVisibleRange}">
                        </SciChart:NumericAxis>
                    </SciChart:SciChartSurface.YAxes>
                </SciChart:SciChartSurface >
    Best regards, Egbert
  • 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