ASP.NET Core MVC Controls | ComponentOne
Working with Controls / Gauge / Work with Gauge / Displaying Values
In This Topic
    Displaying Values
    In This Topic

    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.

    HTML
    Copy Code
    <c1-radial-gauge min=0 max=10 value=5 
     show-text=C1.Web.Mvc.ShowText.All width="300px" height="180px">
    </c1-radial-gauge>