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 properties of the geometry configuration object.
Feel free to share demo-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
x
Send Feedback
Thank you! We appreciate your feedback.
Backend API
<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();
}
}
}