Class BulletChartLegendSettings
Sets and gets the options for customizing the legend of the bullet chart component.
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class BulletChartLegendSettings : SfBaseComponent
Constructors
BulletChartLegendSettings()
Declaration
public BulletChartLegendSettings()
Properties
Alignment
Sets and gets the legend in bullet chart can be aligned as follows: Near: Aligns the legend to the left of the bullet chart. Center: Aligns the legend to the center of the bullet chart. Far: Aligns the legend to the right of the bullet chart.
Declaration
public Alignment Alignment { get; set; }
Property Value
Type |
---|
Alignment |
Background
Sets and gets the background color of the bullet chart legend that accepts value in hex and rgba as a valid CSS color string.
Declaration
public string Background { get; set; }
Property Value
Type |
---|
System.String |
ChildContent
Sets and gets the content of the UI element.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment |
Height
Sets and gets the height of the legend.
Declaration
public string Height { get; set; }
Property Value
Type |
---|
System.String |
Opacity
Sets and gets the opacity of the bullet chart legend.
Declaration
public double Opacity { get; set; }
Property Value
Type |
---|
System.Double |
Padding
Sets and gets option to customize the padding between legend items.
Declaration
public double Padding { get; set; }
Property Value
Type |
---|
System.Double |
Position
Position of the legend in the bullet chart are, Auto: Places the legend based on area type. Top: Displays the legend at the top of the bullet chart. Left: Displays the legend at the left of the bullet chart. Bottom: Displays the legend at the bottom of the bullet chart. Right: Displays the legend at the right of the bullet chart. Custom: Displays the legend based on the given x and y values.
Declaration
public LegendPosition Position { get; set; }
Property Value
Type |
---|
LegendPosition |
ShapeHeight
Sets and gets the shape height of the bullet chart legend.
Declaration
public double ShapeHeight { get; set; }
Property Value
Type |
---|
System.Double |
ShapePadding
Sets and gets the padding between the bullet chart legend shape and text.
Declaration
public double ShapePadding { get; set; }
Property Value
Type |
---|
System.Double |
ShapeWidth
Sets and gets the shape width of the bullet chart legend.
Declaration
public double ShapeWidth { get; set; }
Property Value
Type |
---|
System.Double |
TabIndex
Sets and gets the tabIndex value for the bullet chart legend.
Declaration
public double TabIndex { get; set; }
Property Value
Type |
---|
System.Double |
Visible
Sets and gets the visible of the legend.
Declaration
public bool Visible { get; set; }
Property Value
Type |
---|
System.Boolean |
Width
Sets and gets the width of the legend.
Declaration
public string Width { get; set; }
Property Value
Type |
---|
System.String |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the asynchronous operation. |
Overrides
OnParametersSetAsync()
Method invoked when the component has received parameters from its parent in the render tree and the incoming values have been assigned to properties.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the asynchronous operation. |