Skip to main content

BubbleDataSet

Namespace: Wisej.Web.Ext.ChartJS

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

Specialized data set for the Bubble chart.

public class BubbleDataSet : DataSet

Each item in Data should be an object with the x, y and r (bubble radius in pixels) values.

Example:

this.chartJS1.ChartType = ChartType.Bubble;

var cities = new BubbleDataSet { Label = "Cities" };
cities.Data = new object[]
{
new { x = 10, y = 20, r = 15 },
new { x = 25, y = 12, r = 8 }
};
this.chartJS1.DataSets.Add(cities);

Constructors​

Instance member BubbleDataSet()​

Constructs a new instance of BubbleDataSet.

Sets Type to Bubble.

Example:

var ds = new BubbleDataSet();
ds.Label = "Projects";
ds.BackgroundColor = Color.FromArgb(120, Color.Gold);
ds.Data = new object[] { new { x = 3, y = 7, r = 10 } };
this.chartJS1.DataSets.Add(ds);