BarGauge

The BarGauge widget contains several circular bars that each indicates a single value.

Included in: dx.viz.js, dx.viz-web.js, dx.all.js
Module: viz/bar_gauge
Export: default
BarGauge interactive configuration
Copy Code
Copy to Codepen
$("#bargauge").dxBarGauge({
});

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

  • jQuery

    HTML
    <div id="barGauge"></div>
    JavaScript
    $(function () {
        $("#barGauge").dxBarGauge({
            startValue: 0,
            endValue: 100,
            values: [21.3, 54.1, 30.9, 45.2, 89.41]
        });
    });
  • AngularJS

    HTML
    <div dx-bar-gauge="{
        startValue: 0,
        endValue: 100,
        values: [21.3, 54.1, 30.9, 45.2, 89.41]
    }"></div>
  • Knockout

    HTML
    <div data-bind="dxBarGauge: {
        startValue: 0,
        endValue: 100,
        values: [21.3, 54.1, 30.9, 45.2, 89.41]
    }"></div>
  • ASP.NET MVC Wrappers

    @(Html.DevExtreme().BarGauge()
        .ID("barGauge")
        .StartValue(0)
        .EndValue(100)
        .Values(new [] { 21.3, 54.1, 30.9, 45.2, 89.41 })
    )

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 topics in the Installation section.

Start Tutorial View Demo Watch Video

See Also

Configuration

An object that defines configuration options for the BarGauge widget.

Methods

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

Events

This section describes events fired by this widget.