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({
});

                    

DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.

The following code shows how to create the BarGauge widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.

jQuery
JavaScript
HTML
$(function () {
    $("#barGauge").dxBarGauge({
        startValue: 0,
        endValue: 100,
        values: [21.3, 54.1, 30.9, 45.2, 89.41]
    });
});
<div id="barGauge"></div>
Angular
HTML
TypeScript
<dx-bar-gauge
    [startValue]="0"
    [endValue]="100"
    [values]="[21.3, 54.1, 30.9, 45.2, 89.41]">
</dx-bar-gauge>
import { DxBarGaugeModule } from 'devextreme-angular';
// ...
export class AppComponent {
    // ...
}
@NgModule({
    imports: [
        // ...
        DxBarGaugeModule
    ],
    // ...
})
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 Controls
Razor C#
Razor VB
@(Html.DevExtreme().BarGauge()
    .ID("barGauge")
    .StartValue(0)
    .EndValue(100)
    .Values(new[] { 21.3, 54.1, 30.9, 45.2, 89.41 })
)
@(Html.DevExtreme().BarGauge() _
    .ID("barGauge") _
    .StartValue(0) _
    .EndValue(100) _
    .Values({ 21.3, 54.1, 30.9, 45.2, 89.41 })
)

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.

See Also