Profile Picture

Issue with Gauge scale -it's rounding

Posted By Ivan Orozco 14 Years Ago
Author
Message
Ivan Orozco
questionmark Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 4, Visits: 1

Good morning everyone.

After following this example:

http://forum.nevron.com/shwmessage.aspx?ForumID=1&MessageID=3592

I managed to create a similar gauge, but I have 2 issues with it:

First, I'm setting a range like this:

NGaugeAxis axis1 = (NGaugeAxis)m_RadialGauge1.Axes[0];

axis1.Range = new NRange1DD(35730,12420);

and then an indicator value like this:

m_Indicator1.Value = 8000;

and three colored sections going from 12420 to 16400 (green), 16400 to 21450 (yellow) and 21450 to 35730 (red)

As you can see from the image:

Issue #1: The range is created from 10000 to 40000, instead of 12420 to 35730

Issue #2: The range should have the larger value at the top (or left, depending on the orientation), that is, in reverse.

How can I fix this?

Thanks.



Attachments
GaugeScale.JPG (55 views, 4.00 KB)
Nevron Support
Posted 14 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: 1 days ago @ 8:46 AM
Posts: 3,054, Visits: 4,012

Hi Ivan,

Issue #1: The range is created from 10000 to 40000, instead of 12420 to 35730
By default the axis will round to nearest tick on both sides so that it always ends on a tick step - to suppress this you can use:
linearScale.RoundToTickMax = false;
linearScale.RoundToTickMin = false;

Issue #2: The range should have the larger value at the top (or left, depending on the orientation), that is, in reverse.

All scales can be inverted:
linearScale.Invert = true;

Hope this helps - let us know if you meet any problems.



Best Regards,
Nevron Support Team



Ivan Orozco
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 4, Visits: 1

That did the trick!

Looking wonderful now.

Thank you so much.





Similar Topics


Reading This Topic