Profile Picture

Scale Labels Overlapping

Posted By Bhumi Patel 11 Years Ago
Author
Message
Bhumi Patel
Posted 11 Years Ago
View Quick Profile
Forum Member

Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 33, Visits: 1
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.


Attachments
Scale_Overlap.png (100 views, 10.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 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;



Best Regards,
Nevron Support Team



Bhumi Patel
Posted 11 Years Ago
View Quick Profile
Forum Member

Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 33, Visits: 1
Thank you for your reply. Its working perfectly after adding scale.DisplayLastLabel = false;

Thanks.





Similar Topics


Reading This Topic