Class ChartDataLabel
Options to customize the datalabel for the series.
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class ChartDataLabel : ChartSubComponent, IChartElement, ISubcomponentTracker
Constructors
ChartDataLabel()
Declaration
public ChartDataLabel()
Properties
Alignment
Specifies the alignment for the datalabels.
Declaration
public Alignment Alignment { get; set; }
Property Value
Type |
---|
Alignment |
Angle
Specifies the angle at which label rotation takes place.
Declaration
public double Angle { get; set; }
Property Value
Type |
---|
System.Double |
Border
Options to customize the border of the datalabel.
Declaration
public ChartDataLabelBorder Border { get; set; }
Property Value
Type |
---|
ChartDataLabelBorder |
EnableRotation
Enable the rotation of datalabel.
Declaration
public bool EnableRotation { get; set; }
Property Value
Type |
---|
System.Boolean |
Fill
Specifies the fill color of the datalabel.
Declaration
public string Fill { get; set; }
Property Value
Type |
---|
System.String |
Font
Options to customize the text style of the datalabel.
Declaration
public ChartDataLabelFont Font { get; set; }
Property Value
Type |
---|
ChartDataLabelFont |
Format
Gets and sets the data label format that accepts any global string format like 'C', 'P', 'N1', etc. It also accepts placeholder like '{value}°C' in which value represent the data label, for example, 20°C.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String | Specifies the format for the data label. The default value is |
LabelIntersectAction
Specifies the label intersect action for the datalabel.
Declaration
public string LabelIntersectAction { get; set; }
Property Value
Type |
---|
System.String |
Margin
Options to customize the margin for the datalabel.
Declaration
public ChartDataLabelMargin Margin { get; set; }
Property Value
Type |
---|
ChartDataLabelMargin |
Name
Specifies the datalabel mapping name for the series.
Declaration
public string Name { get; set; }
Property Value
Type |
---|
System.String |
Opacity
Defines the opacity of the datalabel.
Declaration
public double Opacity { get; set; }
Property Value
Type |
---|
System.Double |
Position
Specifies the label position of the datalabel.
Declaration
public LabelPosition Position { get; set; }
Property Value
Type |
---|
LabelPosition |
RendererType
Declaration
public Type RendererType { get; set; }
Property Value
Type |
---|
System.Type |
Rx
Width of rounded corner in horizontal orientation.
Declaration
public double Rx { get; set; }
Property Value
Type |
---|
System.Double |
Ry
Width of rounded corner in vertical orientation.
Declaration
public double Ry { get; set; }
Property Value
Type |
---|
System.Double |
Template
Specifies the custom HTML element in place of datalabel.
Declaration
public RenderFragment<ChartDataPointInfo> Template { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment<ChartDataPointInfo> |
Visible
Enables the visiblity of datalabel.
Declaration
public bool Visible { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
OnInitialized()
Declaration
protected override void OnInitialized()
OnParametersSet()
Declaration
protected override void OnParametersSet()