Profile Picture

NGaugeAxis starting at 0.1

Posted By Lou Laskey 11 Years Ago
Author
Message
Lou Laskey
Posted 11 Years Ago
View Quick Profile
Junior Member

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
Last Active: 9 Years Ago
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.

 



Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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
Posted 11 Years Ago
View Quick Profile
Junior Member

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
Last Active: 9 Years Ago
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 (68 views, 19.00 KB)
Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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
Posted 11 Years Ago
View Quick Profile
Junior Member

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
Last Active: 9 Years Ago
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





Similar Topics


Reading This Topic