Skip to main content

BubbleOptions

Namespace: Wisej.Web.Ext.ChartJS

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

Options for the Bubble chart.

public class BubbleOptions : Options

The Options property returns an instance of this class when ChartType is Bubble. This class doesn't add any option to the shared options defined in Options.

Example:

this.chartJS1.ChartType = ChartType.Bubble;

var options = (BubbleOptions)this.chartJS1.Options;
options.Title.Text = "Population vs. GDP";
options.Scales.xAxes[0].Ticks.Min = 0;

Constructors​

Instance member BubbleOptions()​

Default constructor.

Creates a standalone BubbleOptions set that is not yet attached to a ChartJS control. Assign it to the Options property of a bubble chart.

Example:

var options = new BubbleOptions();
options.Legend.Display = false;

this.chartJS1.ChartType = ChartType.Bubble;
this.chartJS1.Options = options;

Instance member BubbleOptions(chart, defaults)​

Constructs a new instance of the BubbleOptions set.

NameTypeDescription
chartChartJSThe ChartJS that owns this set of options.
defaultsOptionsDefault options to copy from. Can be null.

When defaults is not null, the properties shared with it (for example Title, Legend or Tooltips) are copied into the new instance, which is how the chart preserves the common settings when ChartType changes. The ChartJS control creates this instance automatically when ChartType is Bubble.

Example:

var options = new BubbleOptions(this.chartJS1, this.chartJS1.Options);
options.Title.Display = false;
this.chartJS1.Options = options;