Linear Gauge Labels

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
el1179
Newbie
Newbie
Posts: 5
Joined: Fri Jul 12, 2019 12:00 am

Linear Gauge Labels

Post by el1179 » Mon Apr 20, 2020 11:21 am

I have had a bit of trouble finding out how to scale the labels automatically or manually on the linear gauge. It may be something simple, but I am new to the controls and it did not jump out on me. There is little specific documentation on the gauge control that I could find and it behaves differently than most of the other controls.

For Instance, if I have a Gauge where values could be vary from 0.0 to 1.0 or all the way up to 0 to 200,000 and I want to always show 6-10 labels and ticks on the axis equidistant apart with the proper values. For now I am just using percentages as a workaround and keeping it 0-100. If I have to do this through capturing an event that would work too, just looking to be pointed in the right direction. Thanks.

el1179
Newbie
Newbie
Posts: 5
Joined: Fri Jul 12, 2019 12:00 am

Re: Linear Gauge Labels

Post by el1179 » Mon Apr 20, 2020 11:29 am

Of course I find the answer right after posting and it was simple!

chart.Axes.Bottom.Increment = x

Post Reply