Class AccumulationDataLabelSettingsBuilder
Inheritance
System.Object
AccumulationDataLabelSettingsBuilder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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 angle for data label.
Declaration
public AccumulationDataLabelSettingsBuilder Angle(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Border(Object)
Option for customizing the border lines.
Declaration
public AccumulationDataLabelSettingsBuilder Border(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
ConnectorStyle(AccumulationChartConnector)
Options for customize the connector line in series.
This property is applicable for Pie, Funnel and Pyramid series.
The default connector length for Pie series is '4%'. For other series, it is null.
Declaration
public AccumulationDataLabelSettingsBuilder ConnectorStyle(AccumulationChartConnector value)
Parameters
Returns
ConnectorStyle(Action<AccumulationChartConnectorBuilder>)
Declaration
public AccumulationDataLabelSettingsBuilder ConnectorStyle(Action<AccumulationChartConnectorBuilder> connectorStyle)
Parameters
Returns
EnableRotation(Boolean)
Enables rotation for data label.
Declaration
public AccumulationDataLabelSettingsBuilder EnableRotation(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
Fill(String)
The background color of the data label, which accepts value in hex, rgba as a valid CSS color string.
Declaration
public AccumulationDataLabelSettingsBuilder Fill(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Font(AccumulationChartFont)
Option for customizing the data label text.
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 that accepts any global string format like 'C', 'n1', 'P' etc.
It also accepts placeholder like '{value}°C' in which value represent the data label, e.g, 20°C.
Declaration
public AccumulationDataLabelSettingsBuilder Format(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
MaxWidth(Double)
Specifies the maximum width of the data label.Use this property to limit label width and apply wrap or trimming to the label.
Declaration
public AccumulationDataLabelSettingsBuilder MaxWidth(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Name(String)
The DataSource field which 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 data label. They are.
Outside - Places label outside the point.
Inside - Places label inside the point.
Declaration
public AccumulationDataLabelSettingsBuilder Position(AccumulationLabelPosition value)
Parameters
Returns
Rx(Double)
The roundedCornerX for the data label. It requires border
values not to be null.
Declaration
public AccumulationDataLabelSettingsBuilder 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 AccumulationDataLabelSettingsBuilder Ry(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
ShowZero(Boolean)
If set true, data label for zero values in series gets render.
Declaration
public AccumulationDataLabelSettingsBuilder ShowZero(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
Template(String)
Custom template to format the data label content. Use ${point.x} and ${point.y} as a placeholder
text to display the corresponding data point.
Declaration
public AccumulationDataLabelSettingsBuilder Template(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
TextOverflow(LabelOverflow)
Defines the text overflow behavior to employ when the data label text overflow.
Clip - Truncates data label when it overflows the bounds.
Ellipsis - Specifies an ellipsis (“...”) to the data label when it overflows the bounds.
You can define maximum width of label by setting maxWidth property.
Declaration
public AccumulationDataLabelSettingsBuilder TextOverflow(LabelOverflow value)
Parameters
Returns
TextWrap(TextWrap)
Defines the text wrap behavior to employ when the data label overflow.
Normal - Truncates data label when it overflows the bounds.
Wrap - Specifies to break a data label once it is too long to fit on a line by itself.
AnyWhere - Specifies to break a data label at any point if there are no otherwise-acceptable break points in the line.
You can define maximum width of label by setting maxWidth property.
Declaration
public AccumulationDataLabelSettingsBuilder TextWrap(TextWrap value)
Parameters
Returns
Visible(Boolean)
If set true, data label for series gets render.
Declaration
public AccumulationDataLabelSettingsBuilder Visible(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns