Data Visualization Widgets Bullet

A bullet graph widget.

Included in: dx.chartjs.js, dx.all.js

The dxBullet widget holds a horizontal bar indicating a primary value and a vertical line indicating a target value. This widget is useful when you need to visualize task implementation progress.

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

  • jQuery
    Use the dxBullet jQuery plug-in.

    HTML
    <div id="bulletContainer"></div>
    JavaScript
    $("#bulletContainer").dxBullet({
        startScaleValue: 0,
        endScaleValue: 35,
        value: 27,
        target: 24 
    });
  • Knockout
    Add a div element and apply the dxBullet binding to this element.

    HTML
    <div data-bind="dxBullet: {
        startScaleValue: 0,
        endScaleValue: 35,
        value: 27,
        target: 24 
    }"></div>
  • Angular
    Add a div element and apply the dx-bullet directive to this element.

    HTML
    <div dx-bullet="{
        startScaleValue: 0,
        endScaleValue: 35,
        value: 27,
        target: 24 
    }"></div>

Note that DevExtreme widgets require you to link the jQuery and Globalize libraries to your application. If you use the Knockout or Angular approach, the Knockout or Angular library is also required.

See Also

View Demo Watch Video

Configuration

An object that specifies configuration options for the dxBullet widget.

Methods

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

Events

This section describes events exposed by this widget.