@{ 
    var showTexts = new[] { "None", "Value", "MinMax", "All" };
    var formats = new[] { "n0", "n2", "c0", "c2" };
}

<h1>
    Text Values
</h1>
<p>
    C1 MVC gauges have three properties that affect text display:
</p>
<ul>
    <li>
        <b>showText</b>:
        Determines whether the gauge should show min, max, and/or
        current values as text elements,
    </li>
    <li>
        <b>format</b>:
        Gets or sets the format string used to convert numeric values
        into strings, and
    </li>
    <li>
        <b>getText</b>:
        A callback function used to provide custom strings to display
        the values.
    </li>
</ul>

<div class="row demo-settings">
    <div class="col-xs-6">
        <label for="showText">Show Text</label>
        @Html.C1().ComboBox().Id("showText").Bind(showTexts).Text("All")
        <br />
        <label for="format">Format</label>
        @Html.C1().ComboBox().Id("format").Bind(formats).Text("n0")
        <br />
        <label for="getText">Custom Text</label>
        <input id="getText" type="checkbox">
    </div>
    <div class="col-xs-6">
        @(Html.C1().RadialGauge().Id("theGauge")
            .StartAngle(-30).SweepAngle(240)
            .Value(80).Max(100)
            .IsReadOnly(false)
            .HasShadow(false)
            .ShowText(ShowText.All)
            .ShowRanges(false)
            .Ranges(r =>
            {
                r.Add().Min(0).Max(25).Color(System.Drawing.Color.Red);
                r.Add().Min(25).Max(50).Color(System.Drawing.Color.Orange);
                r.Add().Min(50).Max(100).Color(System.Drawing.Color.Green);
            })
            .Pointer(p=>p.Thickness(0.15))
            .ThumbSize(20)
        )
    </div>
</div>