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

That does get rid of the 0.0 and the scale is not less than 0.1 even though it also doesn't show the 0.1. 

That will work for the moment but I am thinking that at some point I would like to have the 0.1 label showing and am wondering what would be the easiest way to accomplish this.

Thanks,

Lou


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


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

Thanks for the reply.

I am using the chart edit at run time to change the inflate mode but have not found any that appear to work.

Also I did not find a tick rounding setting.

I have attached the image (hopefully).

Lou


Attachments
NevSlider.jpg (92 views, 19.00 KB)
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,

Unfortunately the image is not visible - can you try to post it again - most likely you have InflateMargins or tick rounding turned on...



Best Regards,
Nevron Support Team


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.

 


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