New to Telerik UI for BlazorStart a free 30-day trial

Definition

Constructors

C#
public StockChartLegend()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override void OnAfterRender(bool firstRender)
Parameters:firstRenderbool

Overrides: ComponentBase.OnAfterRender(bool)

C#
protected override void OnInitialized()

Overrides: DataVizChildComponent.OnInitialized()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Properties

Specifies the legend align.

C#
[Parameter]
public ChartLegendAlign? Align { get; set; }

The background color of the legend. Any valid CSS color string will work here, including hex and rgb.

C#
[Parameter]
public string Background { get; set; }
C#
[Parameter]
public RenderFragment ChildContent { get; set; }

The X offset from its position. The offset is relative to the current position of the legend. For instance, a value of 20 will move the legend 20 pixels to the right of it's initial position. A negative value will move the legend to the left of the current position.

C#
[Parameter]
public double? OffsetX { get; set; }

The Y offset from its position. The offset is relative to the current position of the legend. For instance, a value of 20 will move the legend 20 pixels down from it's initial position. A negative value will move the legend upwards from the current position.

C#
[Parameter]
public double? OffsetY { get; set; }

Specifies the legend orientation.

C#
[Parameter]
public ChartLegendOrientation? Orientation { get; set; }

Specifies the legend position.

C#
[Parameter]
public ChartLegendPosition? Position { get; set; }

If set to true the legend items will be reversed.Available in versions 2013.3.1306 and later.

C#
[Parameter]
public bool? Reverse { get; set; }

The visibility of the legend.

C#
[Parameter]
public bool? Visible { get; set; }