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 (101 views, 10.00 KB)



Similar Topics


Reading This Topic