Your search did not match any results.
Linear Gauge

Scale Custom Tick Values

Documentation

This demo shows how to place major ticks at specific scale values. For this purpose, an array of required values is assigned to the customTicks option. In order to hide the automatically generated ticks, the showCalculatedTicks option is set to false.

@(Html.DevExtreme().LinearGauge() .ID("gauge") .Geometry(g => g.Orientation(Orientation.Vertical)) .Scale(s => s .StartValue(0) .EndValue(50) .CustomTicks(new double[] { 0, 10, 25, 50 }) ) .Title(t => t .Text("Fuel Volume (in Liters)") .Font(f => f.Size(28)) ) .Export(e => e.Enabled(true)) .Value(35) )
using DevExtreme.NETCore.Demos.Models.SampleData; using Microsoft.AspNetCore.Mvc; namespace DevExtreme.NETCore.Demos.Controllers { public class GaugesController : Controller { public ActionResult ScaleCustomTickValues() { return View(); } } }
#gauge { height: 440px; width: 100%; }