Nevron Forum

NGaugeAxis starting at 0.1

https://www.nevron.com/Forum/Topic7342.aspx

By Lou Laskey - Monday, January 21, 2013

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.

 

By Nevron Support - Monday, January 21, 2013

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

By Lou Laskey - Monday, January 21, 2013

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

By Nevron Support - Tuesday, January 22, 2013

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;

By Lou Laskey - Tuesday, January 22, 2013

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