New to Kendo UI for jQuery? Download free 30-day trial

Scale Options

The LinearGauge enables you to customize the appearance of the scale by configuring the component's options.

For example, you can change the appearance of the label and ticks, customize the ranges, and others. For the full list of options, refer to the API reference of the LinearGauge.

    <div id="gauge"></div>

    <script>
      $("#gauge").kendoLinearGauge({
        scale: {
          min: 0,
          max: 100,
          ranges: [
            {
              from: 0,
              to: 25,
              color: "#34A56F"
            }, {
              from: 25,
              to: 55,
              color: "#6F2DA8"
            }, {
              from: 55,
              to: 100,
              color: "yellow"
            }
          ],
          labels: {
            template: "#: value #%",
            position: "outside",
            color: '#6F2DA8'
          },
          minorUnit: 5,
          majorUnit: 10
        }
      });
    </script>

See Also

In this article