API Reference
ChartJsDataset
Represents a dataset in a Chart.js chart with full configuration options.
Inheritance
- Object
- ChartJsDataset
Constructors
public ChartJsDataset() #Methods
public ChartJsDataset SetBackgroundColors(params RGBColor[] colors) #ChartJsDatasetSets multiple background colors using strings.
Parameters
- colors System.String[]
SetBackgroundColors(HtmlForgeX.RGBColor[] colors) #Sets multiple background colors using RGBColor.
Parameters
- colors HtmlForgeX.RGBColor[]
public ChartJsDataset SetBorderDash(params Int32[] pattern) #ChartJsDatasetSets the border dash pattern.
Parameters
- pattern System.Int32[]
public ChartJsDataset SetBorderWidth(Int32 width) #ChartJsDatasetSets the border width.
Parameters
- width System.Int32
public ChartJsDataset SetData(IEnumerable<Double> values) #ChartJsDatasetSets the data points for the dataset.
Parameters
- values System.Double[]
SetData(System.Collections.Generic.IEnumerable{System.Double} values) #Sets the data points for the dataset.
Parameters
- values System.Collections.Generic.IEnumerable{System.Double}
public ChartJsDataset SetLabel(String label) #ChartJsDatasetSets the label for the dataset.
Parameters
- label System.String
public ChartJsDataset SetPointBorderWidth(Int32 width) #ChartJsDatasetSets the point border width.
Parameters
- width System.Int32
public ChartJsDataset SetPointHoverBackgroundColor(RGBColor color) #ChartJsDatasetSets the point hover background color using a string.
Parameters
- color System.String
SetPointHoverBackgroundColor(HtmlForgeX.RGBColor color) #Sets the point hover background color using RGBColor.
Parameters
- color HtmlForgeX.RGBColor
public ChartJsDataset SetPointHoverBorderColor(RGBColor color) #ChartJsDatasetSets the point hover border color using a string.
Parameters
- color System.String
SetPointHoverBorderColor(HtmlForgeX.RGBColor color) #Sets the point hover border color using RGBColor.
Parameters
- color HtmlForgeX.RGBColor
public ChartJsDataset SetPointHoverBorderWidth(Int32 width) #ChartJsDatasetSets the point hover border width.
Parameters
- width System.Int32
public ChartJsDataset SetPointHoverRadius(Int32 radius) #ChartJsDatasetSets the point hover radius.
Parameters
- radius System.Int32
public ChartJsDataset SetPointRadius(Int32 radius) #ChartJsDatasetSets the point radius.
Parameters
- radius System.Int32
public ChartJsDataset SetShowLine(Boolean show) #ChartJsDatasetSets whether to show the line (for scatter plots).
Parameters
- show System.Boolean
public ChartJsDataset SetStack(String stack) #ChartJsDatasetSets the stack group for stacked charts.
Parameters
- stack System.String
public ChartJsDataset SetTension(Double tension) #ChartJsDatasetSets the line tension for curved lines.
Parameters
- tension System.Double
public ChartJsDataset SetType(ChartJsType type) #ChartJsDatasetSets the chart type for mixed charts.
Parameters
- type System.String
SetType(HtmlForgeX.ChartJsType type) #Sets the chart type for mixed charts using ChartJsType.
Parameters
- type HtmlForgeX.ChartJsType
public ChartJsDataset SetYAxisID(String id) #ChartJsDatasetSets the Y axis ID.
Parameters
- id System.String
Inherited Methods
Properties
public List<Double> Data { get; set; } #JsonIgnoreGets or sets the data points for standard charts (line, bar, etc).
public Object JsonData { get; } #JsonPropertyName("data") JsonIgnore(Condition = 3)Gets the data for JSON serialization (returns either Data or PointData).
public Object BackgroundColor { get; set; } #JsonPropertyName("backgroundColor") JsonIgnore(Condition = 3)Gets or sets the background color(s).
public Object BorderColor { get; set; } #JsonPropertyName("borderColor") JsonIgnore(Condition = 3)Gets or sets the border color(s).
public Nullable<Int32> BorderWidth { get; set; } #JsonPropertyName("borderWidth") JsonIgnore(Condition = 3)Gets or sets the border width.
public Object PointBackgroundColor { get; set; } #JsonPropertyName("pointBackgroundColor") JsonIgnore(Condition = 3)Gets or sets the point background color(s).
public Object PointBorderColor { get; set; } #JsonPropertyName("pointBorderColor") JsonIgnore(Condition = 3)Gets or sets the point border color(s).
public Object PointHoverBackgroundColor { get; set; } #JsonPropertyName("pointHoverBackgroundColor") JsonIgnore(Condition = 3)Gets or sets the point hover background color(s).
public Object PointHoverBorderColor { get; set; } #JsonPropertyName("pointHoverBorderColor") JsonIgnore(Condition = 3)Gets or sets the point hover border color(s).
public Nullable<Int32> PointRadius { get; set; } #JsonPropertyName("pointRadius") JsonIgnore(Condition = 3)Gets or sets the point radius.
public Nullable<Int32> PointHoverRadius { get; set; } #JsonPropertyName("pointHoverRadius") JsonIgnore(Condition = 3)Gets or sets the point hover radius.
public Nullable<Int32> PointBorderWidth { get; set; } #JsonPropertyName("pointBorderWidth") JsonIgnore(Condition = 3)Gets or sets the point border width.
public Nullable<Int32> PointHoverBorderWidth { get; set; } #JsonPropertyName("pointHoverBorderWidth") JsonIgnore(Condition = 3)Gets or sets the point hover border width.
public Object Fill { get; set; } #JsonPropertyName("fill") JsonIgnore(Condition = 3)Gets or sets the fill mode.
public Nullable<Double> Tension { get; set; } #JsonPropertyName("tension") JsonIgnore(Condition = 3)Gets or sets the line tension (for curved lines).
public Nullable<Boolean> ShowLine { get; set; } #JsonPropertyName("showLine") JsonIgnore(Condition = 3)Gets or sets whether to show the line.
public List<Int32> BorderDash { get; set; } #JsonPropertyName("borderDash") JsonIgnore(Condition = 3)Gets or sets the border dash pattern.
public String Type { get; set; } #JsonPropertyName("type") JsonIgnore(Condition = 3)Gets or sets the type of chart for mixed charts.
public String YAxisID { get; set; } #JsonPropertyName("yAxisID") JsonIgnore(Condition = 3)Gets or sets the Y axis ID.
public String Stack { get; set; } #JsonPropertyName("stack") JsonIgnore(Condition = 3)Gets or sets the stack group for stacked charts.
public Dictionary<String, Object> ExtensionData { get; set; } #JsonExtensionDataGets or sets additional properties for extensibility.