Table of Contents

Class LineChartWidget

Namespace
AbanoubNassem.Trinity.Widgets
Assembly
AbanoubNassem.Trinity.dll

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

string

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 string

The label for the dataset.

backgroundColor string

The background color for the dataset.

borderColor string

The border color for the dataset.

Returns

LineChartWidget

The current instance of the LineChartWidget class.