Your search did not match any results.
Linear Gauge

Base Value for Range Bar

Documentation
By default, the RangeBar starts from the beginning of the LinerGauge scale. This demo illustrates how to use the baseValue option to specify the scale value from which the RangeBar should be drawn.
<div class="long-title"><h3>Deviation from the Target (Horizontal and Vertical)</h3></div> <div id="gauge-demo"> @(Html.DevExtreme().CircularGauge() .ID("c1") .Geometry(g => g .StartAngle(135) .EndAngle(45) ). Scale(s => s .StartValue(45) .EndValue(-45) .TickInterval(45) .Label(l => l.CustomizeText(@<text> function (arg) { return arg.valueText + "°"; } </text>)) ) .ValueIndicator(v => v .Type(GaugeIndicatorType.RangeBar) .BaseValue(0) ) .Value(20) ) @(Html.DevExtreme().LinearGauge() .ID("c2") .Geometry(g => g.Orientation(Orientation.Vertical)) .Scale(s => s .StartValue(-45) .EndValue(45) .TickInterval(45) .Label(l => l.CustomizeText(@<text> function (arg) { return arg.valueText + "°"; } </text>)) ) .ValueIndicator(v => v .BaseValue(0) ) .Value(-10) ) </div>
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 BaseValueForRangeBar() { return View(); } } }
#gauge-demo { height: 440px; width: 100%; } #c1 { width: 70%; height: 100%; float: left; } #c2 { width: 30%; height: 100%; float: left; } .long-title h3 { font-family: 'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana; font-weight: 200; font-size: 28px; text-align: center; margin-bottom: 20px; }