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 Stackoverflow.com 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.

0
0

When i am in Zoom in my X axis values are repeated (See attached image) i think the problem with autoticks the xaml code for x axis is


<s:SciChartSurface.XAxis>

</s:SciChartSurface.XAxis>

how can i fix this?

Images
  • You must to post comments
0
0

Hi Raghupathy,

This occurs because the default NumericAxis.TextFormatting = “0.###”

Take a look at this article on MSDN about Custom Numeric Format Strings

“#” Digit placeholder: Replaces the “#” symbol with the corresponding
digit if one is present; otherwise, no digit appears in the result
string.

e.g. 1234.5678 (“#####”) -> 1235

If you want to see decimal places, you need to set a StringFormat that includes decimals. For instance:

NumericAxis.TextFormatting = "0.000###"

Will always show 3 decimal places. For more advanced string-formatting, please see our LabelProvider API.

Best regards,
Andrew

Showing 1 result
Your Answer

Please first to submit.