SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
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
Hi Egbert,
Please, try to set AxisBase.CursorTextFormatting to proper formatting string, e.g. YAxis.CursorTextFormatting=”#0.0″.
Hope this helps!
Best regards,
Yuriy
<!-- 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
Please login first to submit.