Skip to main content

dxBullet

Namespace: Wisej.Web.Ext.DevExtreme

Assembly: Wisej.Web.Ext.DevExtreme (4.1.0.0)

A bullet bar is a horizontal bar that indicates a bullet chart's primary value. The Bullet widget is useful when you need to compare a single measure to a target value.

public class dxBullet : dxBase

Constructors​

Instance member dxBullet()​

Constructs a new instance of the dxBullet class.

Example:

The following example creates a bullet and configures it through the Options property.

var bullet = new dxBullet();
bullet.Options.startScaleValue = 0;
bullet.Options.endScaleValue = 100;
bullet.Options.value = 65;
bullet.Options.target = 80;
bullet.Size = new Size(200, 30);
this.Controls.Add(bullet);

Instance member dxBullet(options)​

Constructs a new instance of the dxBullet class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a bullet that compares the current revenue with its target.

var bullet = new dxBullet(new
{
startScaleValue = 0,
endScaleValue = 35,
value = 23,
target = 20,
color = "#e8c267"
});
bullet.Size = new Size(200, 30);
this.Controls.Add(bullet);

Implements​