Your search did not match any results.

Scale Custom Tick Values

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.MVC.Demos.Models.SampleData; using System.Collections.Generic; using System.Web.Mvc; namespace DevExtreme.MVC.Demos.Controllers { public class GaugesController : Controller { public ActionResult ScaleCustomTickValues() { return View(); } } }
#gauge { height: 440px; width: 100%; }