Data Visualization Widgets CircularGauge

A widget that represents a gauge with a circular scale.

Included in: dx.viz.js, dx.viz-web.js, dx.all.js
CircularGauge interactive configuration
Copy code
$("#circulargauge").dxCircularGauge({
});

The CircularGauge widget allows you to present meaningful values on a numeric circular scale. The values can be displayed using different indicators such as needles, markers and range bars. In addition, different meaningful ranges can be highlighted on the scale.

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

  • jQuery
    Use the dxCircularGauge jQuery plug-in.

    HTML
    <div id="gaugeContainer"></div>
    JavaScript
    $("#gaugeContainer").dxCircularGauge({
        scale: {
            startValue: 50,
            endValue: 150,
            tickInterval: 10
        },  
        rangeContainer: {
            ranges: [
                { startValue: 50, endValue: 90 },
                { startValue: 90, endValue: 130 },
                { startValue: 130, endValue: 150 }
            ]
        },
        value: 105
    });
  • Knockout
    Add a div element and apply the dxCircularGauge binding to this element.

    HTML
    <div data-bind="dxCircularGauge: {
        scale: {
            startValue: 50,
            endValue: 150,
            tickInterval: 10
        },  
        rangeContainer: {
            ranges: [
                { startValue: 50, endValue: 90 },
                { startValue: 90, endValue: 130 },
                { startValue: 130, endValue: 150 }
            ]
        },
        value: 105
    }"></div>
  • AngularJS
    Add a div element and apply the dx-circular-gauge directive to this element.

    HTML
    <div dx-circular-gauge="{
        scale: {
            startValue: 50,
            endValue: 150,
            tickInterval: 10
        },  
        rangeContainer: {
            ranges: [
                { startValue: 50, endValue: 90 },
                { startValue: 90, endValue: 130 },
                { startValue: 130, endValue: 150 }
            ]
        },
        value: 105
    }"></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 CircularGauge widget.

Methods

This section describes the methods that can be used in code to manipulate objects related to the CircularGauge 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.