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:
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.
Razor |
Copy Code
|
---|---|
@(Html.C1().RadialGauge() .Min(0).Max(10).Value(5) .Width(300).Height(180) .ShowText(ShowText.All) ) |