Class ChartDataLabelSettingsBuilder
Inheritance
System.Object
ChartDataLabelSettingsBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class ChartDataLabelSettingsBuilder : ControlBuilder
Constructors
ChartDataLabelSettingsBuilder()
Declaration
public ChartDataLabelSettingsBuilder()
ChartDataLabelSettingsBuilder(ChartDataLabelSettings)
Declaration
public ChartDataLabelSettingsBuilder(ChartDataLabelSettings model)
Parameters
Methods
Alignment(Alignment)
Specifies the alignment for data Label. They are,
Near: Aligns the label to the left of the point.
Center: Aligns the label to the center of the point.
Far: Aligns the label to the right of the point.
Declaration
public ChartDataLabelSettingsBuilder Alignment(Alignment value)
Parameters
Returns
Angle(Double)
Specifies angle for data label.
Declaration
public ChartDataLabelSettingsBuilder Angle(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Border(ChartBorder)
Option for customizing the border lines.
Declaration
public ChartDataLabelSettingsBuilder Border(ChartBorder value)
Parameters
Returns
Border(Action<ChartBorderBuilder>)
Declaration
public ChartDataLabelSettingsBuilder Border(Action<ChartBorderBuilder> border)
Parameters
Returns
EnableRotation(Boolean)
Enables rotation for data label.
Declaration
public ChartDataLabelSettingsBuilder EnableRotation(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
Fill(String)
The background color of the data label accepts value in hex and rgba as a valid CSS color string.
Declaration
public ChartDataLabelSettingsBuilder Fill(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Font(ChartFont)
Option for customizing the data label text.
Declaration
public ChartDataLabelSettingsBuilder Font(ChartFont value)
Parameters
Returns
Font(Action<ChartFontBuilder>)
Declaration
public ChartDataLabelSettingsBuilder Font(Action<ChartFontBuilder> font)
Parameters
Returns
Used to format the point data label that accepts any global string format like 'C', 'n1', 'P' etc.
It also accepts placeholder like '{value}°C' in which value represent the point data label, e.g, 20°C.
Declaration
public ChartDataLabelSettingsBuilder Format(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
LabelIntersectAction(DataLabelIntersectAction)
Show Datalabel Even two Data Labels Are Overflow.
Declaration
public ChartDataLabelSettingsBuilder LabelIntersectAction(DataLabelIntersectAction value)
Parameters
Returns
Margin(ChartMargin)
Margin configuration for the data label.
Declaration
public ChartDataLabelSettingsBuilder Margin(ChartMargin value)
Parameters
Returns
Margin(Action<ChartMarginBuilder>)
Declaration
public ChartDataLabelSettingsBuilder Margin(Action<ChartMarginBuilder> margin)
Parameters
Returns
Name(String)
The DataSource field that contains the data label value.
Declaration
public ChartDataLabelSettingsBuilder Name(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Opacity(Double)
The opacity for the background.
Declaration
public ChartDataLabelSettingsBuilder Opacity(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Position(LabelPosition)
Specifies the position of the data label. They are,
Outer: Positions the label outside the point.
top: Positions the label on top of the point.
Bottom: Positions the label at the bottom of the point.
Middle: Positions the label to the middle of the point.
Auto: Positions the label based on series.
Declaration
public ChartDataLabelSettingsBuilder Position(LabelPosition value)
Parameters
Returns
Rx(Double)
The roundedCornerX for the data label. It requires border
values not to be null.
Declaration
public ChartDataLabelSettingsBuilder Rx(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Ry(Double)
The roundedCornerY for the data label. It requires border
values not to be null.
Declaration
public ChartDataLabelSettingsBuilder Ry(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
ShowZero(Boolean)
If set true, data label for zero values in series renders.
Declaration
public ChartDataLabelSettingsBuilder ShowZero(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
Template(String)
Custom template to show the data label. Use ${point.x} and ${point.y} as a placeholder
text to display the corresponding data point.
Declaration
public ChartDataLabelSettingsBuilder Template(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Visible(Boolean)
If set true, data label for series renders.
Declaration
public ChartDataLabelSettingsBuilder Visible(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns