Pre loader

0 shows incorrectly on Axis of netcoreapp3.1

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

1
0

I build a .net6.0 project, and add an scichart, when I set the min of visible range of Axis to a bit less than 0, for example -1, the first tick will be zero ,but will show as -0, which is very weird.

And the situation occurs on demo of Scichart, too.

Version
6.4.0.13629
Images
  • Andrew Burnett-Thompson
    I believe the SciChart WPF team found & fixed a bug for this but it’s in the latest version (v7.x) I will check with the team.
  • Hugo Chu
    Hi Andrew, Thank you for your reply. Glad to know this will be fixed in the latest version. But for now, do we have an easy way to fix this? I use a custom TickProvider for now, but I think this is a little complicated, maybe you have a simple one.
  • Andrew Burnett-Thompson
    I think it was a localisation issue. Try overriding the label provider and formatting labels using some custom code. If that doesn’t work I can ask the team for suggestions
  • Hugo Chu
    Hi Andrew, I already figured out the reason and one solution. The tick 0 here is actually -0(maybe a bug here), so based on Floating-Point Parsing and Formatting improvements in .NET Core 3.0, which distinguishes +0 and -0, the transferred string will become -0. I tried overriding the tick provider and checking tick of 0, and gave it a true 0, which works. Thank you for your help.
  • You must to post comments
0
0

Hi Hugo,

This issue has been fixed in our v7.x branch of SciChart WPF and we will soon publish a nightly build for it.

In order to take advantage of the fix, you will need to upgrade your project to use SciChart WPF v7. Once we have a version published (will be 7.0.3 or later) the fix will be applied.

Let me know if this helps,

Also – if you activate your scichart WPF license then your forum badge will show as a supported customer. Please do that so you can receive tech support promptly.

Thank you!

-Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.