Class LineChartWidget
Represents a line chart widget.
public class LineChartWidget : TrinityChartWidget<LineChartWidget>, ITrinityWidget, ITrinityComponent
- Inheritance
-
LineChartWidget
- 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?)
Adds a new dataset to the chart with the specified data, label, background color and border color.
public override LineChartWidget SetDataset(List<object> data, string label, string? backgroundColor = null, string? borderColor = null)
Parameters
data
List<object>The data values for the dataset.
label
stringThe label for the dataset.
backgroundColor
stringThe background color for the dataset.
borderColor
stringThe border color for the dataset.
Returns
- LineChartWidget
The current instance of the LineChartWidget class.