Class AccumulationDataLabelSettingsBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
AccumulationDataLabelSettingsBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class AccumulationDataLabelSettingsBuilder : ControlBuilder
Constructors
AccumulationDataLabelSettingsBuilder()
Declaration
public AccumulationDataLabelSettingsBuilder()
AccumulationDataLabelSettingsBuilder(AccumulationDataLabelSettings)
Declaration
public AccumulationDataLabelSettingsBuilder(AccumulationDataLabelSettings model)
Parameters
Methods
Angle(Double)
Specifies the rotation angle of the data label.
Declaration
public AccumulationDataLabelSettingsBuilder Angle(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Border(Object)
Configures the appearance of the border lines with options for width and color properties.
Declaration
public AccumulationDataLabelSettingsBuilder Border(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
ConnectorStyle(AccumulationChartConnector)
Options to customize the connector line in the series.
By default, the connector length for the Pie series is set to '4%'. For other series, it is set to null
.
Declaration
public AccumulationDataLabelSettingsBuilder ConnectorStyle(AccumulationChartConnector value)
Parameters
Returns
ConnectorStyle(Action<AccumulationChartConnectorBuilder>)
Declaration
public AccumulationDataLabelSettingsBuilder ConnectorStyle(Action<AccumulationChartConnectorBuilder> connectorStyle)
Parameters
Returns
EnableRotation(Boolean)
If set to true, the data label will be rotated according to the specified angle.
Declaration
public AccumulationDataLabelSettingsBuilder EnableRotation(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
Fill(String)
The background color of the data label accepts hex and rgba values as valid CSS color strings.
Declaration
public AccumulationDataLabelSettingsBuilder Fill(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Font(AccumulationChartFont)
Customizes the appearance of the data label text with options for font size, color, style, weight, and family.
Declaration
public AccumulationDataLabelSettingsBuilder Font(AccumulationChartFont value)
Parameters
Returns
Font(Action<AccumulationChartFontBuilder>)
Declaration
public AccumulationDataLabelSettingsBuilder Font(Action<AccumulationChartFontBuilder> font)
Parameters
Returns
Used to format the data label, accepting global string formats like C
, n1
, P
, etc.
It also supports placeholders, such as {value}°C
, where {value}
represent the point data label (e.g., 20°C).
Declaration
public AccumulationDataLabelSettingsBuilder Format(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
MaxWidth(Double)
Use this property to limit the label width and apply wrapping or trimming.
Declaration
public AccumulationDataLabelSettingsBuilder MaxWidth(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Name(String)
Specifies the data source field that contains the data label value.
Declaration
public AccumulationDataLabelSettingsBuilder Name(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Position(AccumulationLabelPosition)
Specifies the position of the data label relative to the data point.
The available options are:
Outside - Places the data label outside the data point, which is typically used to avoid overlap with the data point.
Inside - Places the data label inside the data point, which is useful for displaying labels within the data point.
Declaration
public AccumulationDataLabelSettingsBuilder Position(AccumulationLabelPosition value)
Parameters
Returns
Rx(Double)
Specifies the X-axis rounded corner radius for the data label.
Note that border
values must not be null for this feature to work.
Declaration
public AccumulationDataLabelSettingsBuilder Rx(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Ry(Double)
Specifies the Y-axis rounded corner radius for the data label.
Note that border
values must not be null for this feature to work.
Declaration
public AccumulationDataLabelSettingsBuilder Ry(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
ShowZero(Boolean)
If set to true, the data label for zero values in the series will be rendered.
Declaration
public AccumulationDataLabelSettingsBuilder ShowZero(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
Template(String)
Custom template to format the content of the data label.
Use ${point.x}
and ${point.y}
as placeholders to display the corresponding data point values.
Declaration
public AccumulationDataLabelSettingsBuilder Template(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
TextOverflow(LabelOverflow)
Defines the text overflow behavior for the data label when the text exceeds the bounds.
Available options are:
Clip - Truncates the data label when it overflows the bounds.
Ellipsis - Displays an ellipsis ("...") at the end of the data label when it overflows the bounds.
Set the maximum width of the label using the maxWidth
property.
Declaration
public AccumulationDataLabelSettingsBuilder TextOverflow(LabelOverflow value)
Parameters
Returns
TextWrap(TextWrap)
Defines the text wrap behavior for the data label when it overflows the bounds.
Available options are:
Normal - Truncates the data label when it overflows the bounds.
Wrap - Breaks the data label into multiple lines when it is too long to fit on a single line.
AnyWhere - Breaks the data label at any point if there are no otherwise acceptable break points.
Set the maximum width of the label using the maxWidth
property.
Declaration
public AccumulationDataLabelSettingsBuilder TextWrap(TextWrap value)
Parameters
Returns
Visible(Boolean)
If set to true, data labels for the series are render. By default, it is set to false.
Declaration
public AccumulationDataLabelSettingsBuilder Visible(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns