Your search did not match any results.

Palette for Ranges

Documentation

This demo shows how to combine scale values into ranges. The ranges are defined within the array assigned to the ranges property of the rangeContainer object. The colors for the ranges are taken from the predefined palette specified by the palette property.

Backend API
@(Html.DevExtreme().CircularGauge() .ID("gauge") .Scale(s => s .StartValue(50) .EndValue(150) .TickInterval(10) .Label(l => l.UseRangeColors(true)) ) .RangeContainer(c => c .Palette(VizPalette.Pastel) .Ranges(r => { r.Add().StartValue(50).EndValue(90); r.Add().StartValue(90).EndValue(130); r.Add().StartValue(130).EndValue(150); }) ) .Title(t => t .Text("Temperature of the Liquid in the Boiler") .Font(f => f.Size(28)) ) .Export(e => e.Enabled(true)) .Value(105) )
using DevExtreme.NETCore.Demos.Models.SampleData; using Microsoft.AspNetCore.Mvc; namespace DevExtreme.NETCore.Demos.Controllers { public class GaugesController : Controller { public ActionResult PaletteForRanges() { return View(); } } }
#gauge { height: 440px; width: 100%; }