Your search did not match any results.

Gauges - Subvalue Indicator Text Formatting

This demo shows how to format the text displayed by the subvalue indicator of the textCloud type. For this purpose, the text property of the subvalueIndicator configuration object is utilized.

Backend API
@(Html.DevExtreme().CircularGauge() .ID("gauge") .Scale(s => s .StartValue(0) .EndValue(3000) .TickInterval(500) .Label(l => l.CustomizeText(@<text> function (arg) { return arg.valueText + " °C"; } </text>)) ) .SubvalueIndicator(i => i .Type(GaugeIndicatorType.TextCloud) .Text(t => t .Format(f => f.Type(Format.Thousands).Precision(1)) .CustomizeText(@<text> function (arg) { return arg.valueText + " °C"; } </text>) ) ) .Export(e => e.Enabled(true)) .Title(t => t .Text("Oven Temperature (includes Recommended)") .Font(f => f.Size(28)) ) .Value(2200) .Subvalues(new double[] { 2700 }) )
using DevExtreme.MVC.Demos.Models.SampleData; using System.Collections.Generic; using System.Web.Mvc; namespace DevExtreme.MVC.Demos.Controllers { public class GaugesController : Controller { public ActionResult SubvalueIndicatorTextFormatting() { return View(); } } }
#gauge { height: 440px; width: 100%; }