Nevron Forum

Scale Labels Overlapping

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

By Bhumi Patel - Tuesday, March 19, 2013

Hi All,

I am working on creating a simple gauge that has a range from 700 to 1200. But Beginning label 700 and ending label 1200 are overlapping on each other. Please take a look at attached image. I would like to display 700 only.

Code that is used to configure scale is as below:
NLinearScaleConfigurator scale = (NLinearScaleConfigurator)axis.ScaleConfigurator;
scale.SetPredefinedScaleStyle(PredefinedScaleStyle.Presentation);
scale.MinorTickCount = 4;
scale.MajorTickMode = MajorTickMode.CustomStep;
scale.CustomStep = 100;
scale.InflateBeginContentRangeWithCustomTicks = true;
scale.InflateEndContentRangeWithCustomTicks = true;
scale.ViewRangeInflateMode = ScaleViewRangeInflateMode.MajorTick;
scale.RoundToTickMax = false;
scale.RoundToTickMin = false;

Thanks.
By Nevron Support - Tuesday, March 19, 2013

Hi Bhumi,

The axis scale labels are overlapping because of the radial gauge Begin and Sweep Angle. You probably have:

radialGauge.BeginAngle = -90;

radialGauge.SweepAngle = 360;

 

In order to display only the first label, you can use the following line of code:

scale.DisplayLastLabel = false;

By Bhumi Patel - Tuesday, March 19, 2013

Thank you for your reply. Its working perfectly after adding scale.DisplayLastLabel = false;

Thanks.