Table of Contents

Class StackedBarChartWidget

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

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

string

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 string

The label to be used for the dataset.

backgroundColor string

The background color for the data points.

borderColor string

The border color for the data points.

Returns

StackedBarChartWidget

The StackedBarChartWidget instance.