ClassChartLegend
Telerik UI ChartLegend.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartLegend : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartLegend
Implements:
Inherited Members
Constructors
ChartLegend()
Declaration
public ChartLegend()
Properties
Align
Specifies the legend align.
Declaration
[Parameter]
public ChartLegendAlign? Align { get; set; }
Property Value
Background
The background color of the legend. Accepts a valid CSS color string, including hex and rgb.
Declaration
[Parameter]
public string Background { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Height
The legend height when the legend.orientation is set to "vertical".
Declaration
[Parameter]
public double? Height { get; set; }
Property Value
OffsetX
The X offset of the chart legend. The offset is relative to the default position of the legend. For instance, a value of 20 will move the legend 20 pixels to the right of its initial position. A negative value will move the legend to the left of its current position.
Declaration
[Parameter]
public double? OffsetX { get; set; }
Property Value
OffsetY
The Y offset of the chart legend. 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 its initial position. A negative value will move the legend upwards from its current position.
Declaration
[Parameter]
public double? OffsetY { get; set; }
Property Value
Orientation
Specifies the legend orientation.
Declaration
[Parameter]
public ChartLegendOrientation? Orientation { get; set; }
Property Value
Position
Specifies the legend position.
Declaration
[Parameter]
public ChartLegendPosition? Position { get; set; }
Property Value
Reverse
If set to true the legend items will be reversed.Available in versions 2013.3.1306 and later.
Spacing
The spacing between the labels in pixels when the legend.orientation is "horizontal".
Declaration
[Parameter]
public double? Spacing { get; set; }
Property Value
Visible
If set to true the chart will display the legend. By default the chart legend is visible.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
OnAfterRender(bool)
Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
firstRender
Overrides
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides
Serialize()
Declaration
public Dictionary<string, object> Serialize()
Returns