Profile Picture

Fix gauge range to the actual input range without calcualting to "nice" values - how?

Posted By Kevin Harrison 9 Years Ago

Fix gauge range to the actual input range without calcualting to...

Author
Message
Kevin Harrison
Posted 9 Years Ago
View Quick Profile
Supreme Being

Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 176, Visits: 1,865
Thanks. I agree the current behaviour is much better but some users want the option to absolutely fix the range.
Thanks
Kevin

Nevron Support
Posted 9 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: Yesterday @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hi Kevin,

Hi Kevin,

All scales in the control by default round to the nearest min/max ticks for aesthetical reasons. To turn off this feature you can write:
 
NStandardScaleConfigurator scale = chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator as NStandardScaleConfigurator;
scale.RoundToTickMax = false;
scale.RoundToTickMin = false;
 
Let us know if you meet any problems.



Best Regards,
Nevron Support Team



Kevin Harrison
Question Posted 9 Years Ago
View Quick Profile
Supreme Being

Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 176, Visits: 1,865
When I set the range on an NGaugeAxis to, say, (3, 97) , the scale displayed on the gauge is (0, 100).
Is there any way I can prevent this rounding occurring?
Thanks
Kevin



Similar Topics


Reading This Topic