RadarDataSet
Namespace: Wisej.Web.Ext.ChartJS
Assembly: Wisej.Web.Ext.ChartJS (4.1.0.0)
Specialized data set for the Radar chart.
- C#
- VB.NET
public class RadarDataSet : DataSet
Public Class RadarDataSet
Inherits DataSet
Add creates a RadarDataSet when ChartType is Radar.
Example:
this.chartJS1.ChartType = ChartType.Radar;
this.chartJS1.Labels = new[] { "Speed", "Comfort", "Safety", "Price", "Design" };
var carA = (RadarDataSet)this.chartJS1.DataSets.Add("Car A");
carA.Data = new object[] { 8, 6, 9, 5, 7 };
carA.BorderColor = Color.DarkCyan;
Constructors
RadarDataSet()
Constructs a new instance of RadarDataSet.
Example:
this.chartJS1.ChartType = ChartType.Radar;
this.chartJS1.DataSets.Add(new RadarDataSet
{
Label = "Team B",
Data = new object[] { 5, 7, 6, 8, 4 }
});
Properties
LineTension
Double: Returns or sets the Bezier curve tension of the line. Set to 0 to draw straight lines. (Default: 0)
Value: The tension of the curve. The default is 0.
Example:
var ds = (RadarDataSet)this.chartJS1.DataSets.Add("Profile");
// slightly rounded edges.
ds.LineTension = 0.2;