|
Group: Forum Members
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.
|