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.
- C#
- VB.NET
public class ejSparkline : ejBase
Public Class ejSparkline
Inherits ejBase
Constructors
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);
ejSparkline(options)
Constructs a new instance of the ejSparkline class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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);