Data Visualization Widgets BarGauge

A circular bar widget.

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

The BarGauge widget represents data as a set of bars. Each bar resides on a separate circular track and indicates one value. That bar is accompanied by a label displaying the indicated value.

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

  • jQuery
    Use the dxBarGauge jQuery plug-in.

    HTML
    <div id="gaugeContainer"></div>
    JavaScript
    $("#gaugeContainer").dxBarGauge({
        startValue: 0,
        endValue: 100,
        values: [21.3, 54.1, 30.9, 45.2, 89.41]
    });
  • Knockout
    Add a div element and apply the dxBarGauge binding to this element.

    HTML
    <div data-bind="dxBarGauge: {
        startValue: 0,
        endValue: 100,
        values: [21.3, 54.1, 30.9, 45.2, 89.41]
    }"></div>
  • AngularJS
    Add a div element and apply the dx-bar-gauge directive to this element.

    HTML
    <div dx-bar-gauge="{
        startValue: 0,
        endValue: 100,
        values: [21.3, 54.1, 30.9, 45.2, 89.41]
    }"></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 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.