LinearGauge

The LinearGauge is a widget that indicates values on a linear numeric scale.

Included in: dx.viz.js, dx.viz-web.js, dx.all.js
LinearGauge interactive configuration
Copy Code
Copy to Codepen
$("#lineargauge").dxLinearGauge({
});

You can create the widget using one of the following approaches.

  • jQuery
    Use the dxLinearGauge jQuery plug-in.

    HTML
    <div id="gaugeContainer"></div>
    JavaScript
    $("#gaugeContainer").dxLinearGauge({
        scale: {
            startValue: 0,
            endValue: 5,
            tickInterval: 2.5
        },
        value: 4.3
    });
  • Knockout
    Add a div element and apply the dxLinearGauge binding to this element.

    HTML
    <div data-bind="dxLinearGauge: {
        scale: {
            startValue: 0,
            endValue: 5,
            tickInterval: 2.5
        },
        value: 4.3
    }"></div>
  • AngularJS
    Add a div element and apply the dx-linear-gauge directive to this element.

    HTML
    <div dx-linear-gauge="{
        scale: {
            startValue: 0,
            endValue: 5,
            tickInterval: 2.5
        },
        value: 4.3
    }"></div>

Note that DevExtreme widgets require you to link the jQuery library to your application. If you use the Knockout or AngularJS approach, the Knockout or AngularJS library is also required. For detailed information on linking these libraries to your project, refer to the Installation article.

Start Tutorial View Demo Watch Video

See Also

Configuration

An object that defines configuration options for the LinearGauge widget.

Methods

This section describes the methods that can be used in code to manipulate objects related to the LinearGauge widget.

Events

This section describes events fired by this widget.

Indicator Types

This section lists objects that define options used to configure value and subvalue indicators of specific types.