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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.



I’m using v3.2 SciChart and cannot figure with this problem:

    <SciChart:SciChartSurface x:Name="sciChart">
        <!--  Create X Axis  -->
            <SciChart:NumericAxis   AxisTitle="{Binding XAxisLabel}"   VisibleRange="-20, 50"/>

It seems that negative values are not displayed correctly, it’s showing these data:
-2 -1 0 10 20 30 40 50

If I set textFormatting to “#.0”, it shows
-20, -10, ,0 10,0 20,0 30,0 40,0 50,0

It’s like negative sign is considerate as a digit.

  • You must to post comments

Hi there,

This sounds like a textformatting issue. If you check our Create a Basic Chart -> Digital Line Chart example and zoom out with mouse-wheel you will see it displays negative numbers and zero correctly (see the attached image).

In this example XAxis.TextFormatting is left to the default, which is “0.###”

If you try the same thing with the Line Chart example, the zero value dissappears. This is caused by the TextFormatting being “#.############”, which means if a value does not exist, don’t display it.

You can override Axis TextFormatting or control label output in finer detail with the LabelProvider feature.

Best regards

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.