Skip to main content

BulletChart

Namespace: Wisej.Web.Ext.Syncfusion2

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

Bullet charts are used to visually compare measures, like the commonly used bar chart. They display one or more measures and compare them with a target value.

public class BulletChart : ej2Base

Constructors​

Instance member BulletChart()​

Constructs a new instance of the BulletChart class.

Example:

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

var bullet = new BulletChart();
bullet.Options.title = "Revenue";
bullet.Options.minimum = 0;
bullet.Options.maximum = 300;
bullet.Options.interval = 50;
bullet.Options.valueField = "value";
bullet.Options.targetField = "target";
bullet.Options.dataSource = new[] { new { value = 270, target = 250 } };
this.Controls.Add(bullet);

Instance member BulletChart(options)​

Constructs a new instance of the BulletChart class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a bullet chart that compares a measure with its target over three qualitative ranges.

var bullet = new BulletChart(new
{
title = "Profit",
subtitle = "in thousands",
minimum = 0,
maximum = 100,
interval = 20,
valueField = "value",
targetField = "target",
dataSource = new[] { new { value = 70, target = 85 } },
ranges = new[] { new { end = 40 }, new { end = 70 }, new { end = 100 } }
});
this.Controls.Add(bullet);

Implements​