Class StockChartDataLabelSettingsBuilder
Inheritance
System.Object
StockChartDataLabelSettingsBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class StockChartDataLabelSettingsBuilder : ControlBuilder
Constructors
StockChartDataLabelSettingsBuilder()
Declaration
public StockChartDataLabelSettingsBuilder()
StockChartDataLabelSettingsBuilder(StockChartDataLabelSettings)
Declaration
public StockChartDataLabelSettingsBuilder(StockChartDataLabelSettings 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 StockChartDataLabelSettingsBuilder Alignment(Alignment value)
Parameters
Returns
Angle(Double)
Specifies angle for data label.
Declaration
public StockChartDataLabelSettingsBuilder Angle(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Border(Object)
Option for customizing the border lines.
Declaration
public StockChartDataLabelSettingsBuilder Border(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
EnableRotation(Boolean)
Enables rotation for data label.
Declaration
public StockChartDataLabelSettingsBuilder 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 StockChartDataLabelSettingsBuilder Fill(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Font(Object)
Option for customizing the data label text.
Declaration
public StockChartDataLabelSettingsBuilder Font(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
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 StockChartDataLabelSettingsBuilder Format(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
LabelIntersectAction(DataLabelIntersectAction)
Show Datalabel Even two Data Labels Are Overflow.
Declaration
public StockChartDataLabelSettingsBuilder LabelIntersectAction(DataLabelIntersectAction value)
Parameters
Returns
Margin(Object)
Margin configuration for the data label.
Declaration
public StockChartDataLabelSettingsBuilder Margin(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Name(String)
The DataSource field that contains the data label value.
Declaration
public StockChartDataLabelSettingsBuilder Name(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Opacity(Double)
The opacity for the background.
Declaration
public StockChartDataLabelSettingsBuilder 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 StockChartDataLabelSettingsBuilder Position(LabelPosition value)
Parameters
Returns
Rx(Double)
The roundedCornerX for the data label. It requires border
values not to be null.
Declaration
public StockChartDataLabelSettingsBuilder 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 StockChartDataLabelSettingsBuilder 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 StockChartDataLabelSettingsBuilder 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 StockChartDataLabelSettingsBuilder Template(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Visible(Boolean)
If set true, data label for series renders.
Declaration
public StockChartDataLabelSettingsBuilder Visible(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns