NGaugeAxis starting at 0.1


Author
Message
Lou Laskey
Lou Laskey
Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)
Group: Forum Members
Posts: 24, Visits: 2

I have been working with Nevron Chart for a few years and recently decided to replace all of my charts (from another library) with Nevron.

The charts have all been replaced and are working fine so now I am working on the sliders.

I have several sliders where I use custom labels and they are working fine but I have one for numeric values that I have an issue with and I am trying to avoid going to custom labels if possible.

The slider range is from 0.1 to 12.0 in 0.1 steps (snap to minor grid) but as you may be able to see(not sure because I can't see the picture), the minimum value is displayed as 0.0.  I handle this currently in the event that gets the value on commit (MouseUp) by making sure the value is not less than 0.1.

Any ideas on how to deal with this other than custom labels?

TIA,

Lou L.

 


Reply
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Lou,

This is caused by the automatic tick rounding feature - to turn it off you can use the following code:

NLinearScaleConfigurator scaleX = someAxis.ScaleConfigurator as NLinearScaleConfigurator;
scaleX.RoundToTickMax = false;
scaleX.RoundToTickMin = false;



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search