Class StackedBarChartWidget
Represents a widget for displaying stacked bar charts.
public class StackedBarChartWidget : TrinityChartWidget<StackedBarChartWidget>, ITrinityWidget, ITrinityComponent
- Inheritance
-
StackedBarChartWidget
- Implements
- Inherited Members
Properties
ComponentName
The component name in the front-end side.
public override string ComponentName { get; }
Property Value
Methods
SetDataset(List<object>, string, string?, string?)
Sets the dataset for the stacked bar chart widget.
public override StackedBarChartWidget SetDataset(List<object> data, string label, string? backgroundColor = null, string? borderColor = null)
Parameters
data
List<object>The data to be used in the chart.
label
stringThe label to be used for the dataset.
backgroundColor
stringThe background color for the data points.
borderColor
stringThe border color for the data points.
Returns
- StackedBarChartWidget
The StackedBarChartWidget instance.