Skip to main content

ejSparkline

Namespace: Wisej.Web.Ext.Syncfusion

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

Sparklines are easy to interpret and also it conveys much more information to the user by visualizing the data in a small amount of space.

public class ejSparkline : ejBase

Constructors​

Instance member ejSparkline()​

Constructs a new instance of the ejSparkline class.

Example:

The following example creates the sparkline and sets the values and the type through the options.

var sparkline = new ejSparkline();
sparkline.Options.dataSource = new[] { 12, 18, 9, 24, 15, 21, 30 };
sparkline.Options.type = "line";
sparkline.Size = new Size(150, 40);
this.Controls.Add(sparkline);

Instance member ejSparkline(options)​

Constructs a new instance of the ejSparkline class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a column sparkline bound to a list of objects that highlights the highest and the lowest values.

var sparkline = new ejSparkline(new
{
type = "column",
dataSource = monthlySales,
xName = "Month",
yName = "Total",
highPointColor = "green",
lowPointColor = "red"
});
sparkline.Size = new Size(150, 40);
this.Controls.Add(sparkline);

Implements​