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

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.