[]
        
(Showing Draft Content)

Displaying Values

You can display values on a gauge to know the minimum/maximum value or current value of the gauge. The ShowText property allows you to select the values that you want to display as text by the gauge.

There are four valid values for the ShowText property:

  • Value: Displays only the current value of gauge.
  • MinMax: Displays only the min and max values of gauge.
  • All: Displays the min, max, and current values of the gauge.
  • None: Displays no text in the gauge control. This is the default value.

The following image shows how the RadialGauge appears after the ShowText property has been set to All.

The following code example demonstrates how to set this property in ASP.NET MVC Edition using Razor. The example uses the sample created in the RadialGauge Quick Start section.

@(Html.C1().RadialGauge()
    .Min(0).Max(10).Value(5)
    .Width(300).Height(180)
.ShowText(ShowText.All)
)