Your search did not match any results.

Angles Customization

This demo illustrates how to change the geometry of the CircularGauge. The shape of the gauge arc is defined by the values assigned to the startAngle and endAngle options of the geometry configuration object.
<div class="long-title"><h3>Humidity in Rooms (%)</h3></div> <div id="gauge-demo"> @(Html.DevExtreme().CircularGauge() .ElementAttr("class", "gauge") .Scale(s => s .StartValue(0) .EndValue(100) .TickInterval(10) ) .Geometry(g => g .StartAngle(180) .EndAngle(90) ) .Value(80) ) @(Html.DevExtreme().CircularGauge() .ElementAttr("class", "gauge") .Scale(s => s .StartValue(100) .EndValue(0) .TickInterval(10) ) .Geometry(g => g .StartAngle(90) .EndAngle(0) ) .Value(75) ) @(Html.DevExtreme().CircularGauge() .ElementAttr("class", "gauge") .Scale(s => s .StartValue(100) .EndValue(0) .TickInterval(10) ) .Geometry(g => g .StartAngle(-90) .EndAngle(-180) ) .Value(70) ) @(Html.DevExtreme().CircularGauge() .ElementAttr("class", "gauge") .Scale(s => s .StartValue(0) .EndValue(100) .TickInterval(10) ) .Geometry(g => g .StartAngle(0) .EndAngle(-90) ) .Value(68) ) </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 AnglesCustomization() { return View(); } } }
#gauge-demo { height: 440px; width: 100%; } .gauge { width: 50%; height: 50%; 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; }