Skip to main content

PolarAreaDataSet

Namespace: Wisej.Web.Ext.ChartJS4.Models

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

Data set for polar area charts.

public class PolarAreaDataSet : ChartDataSet

Sets Type to "polarArea". Each value is drawn as a segment with the same angle and a radius proportional to the value; colors are usually assigned per segment via an array in BackgroundColor.

Example:

var chart = new ChartJS4 { ChartType = ChartType.PolarArea };
chart.Labels = new[] { "North", "East", "South", "West" };
chart.DataSets.Add(new PolarAreaDataSet
{
Label = "Wind",
Data = new object[] { 11, 16, 7, 3 },
BackgroundColor = new object[] { "#ff6384", "#4bc0c0", "#ffcd56", "#36a2eb" }
});

Constructors​

Instance member PolarAreaDataSet()​

Initializes a new instance of the PolarAreaDataSet class.

Sets Type to "polarArea".

Example:

var polar = new PolarAreaDataSet { Label = "Scores" };
polar.Data = new object[] { 4, 7, 2 };
chart.DataSets.Add(polar);