Class AccumulationDataLabelSettings
Inherited Members
Namespace: Syncfusion.EJ2.Charts
Assembly: Syncfusion.EJ2.dll
Syntax
public class AccumulationDataLabelSettings : EJTagHelper
Constructors
AccumulationDataLabelSettings()
Declaration
public AccumulationDataLabelSettings()
Properties
Angle
Specifies angle for data label.
Declaration
public double Angle { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
Border
Option for customizing the border lines.
Declaration
public object Border { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
ConnectorStyle
Declaration
public AccumulationChartConnector ConnectorStyle { get; set; }
Property Value
Type |
---|
AccumulationChartConnector |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type |
---|
MvcTemplate<System.Object> |
EnableRotation
Enables rotation for data label.
Declaration
public bool EnableRotation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Fill
The background color of the data label, which accepts value in hex, rgba as a valid CSS color string.
Declaration
public string Fill { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "transparent" |
Font
Option for customizing the data label text.
Declaration
public AccumulationChartFont Font { get; set; }
Property Value
Type | Description |
---|---|
AccumulationChartFont | The default value is null |
Format
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 string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
MaxWidth
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 double MaxWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is Double.NaN |
Name
The DataSource field which contains the data label value.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Position
Specifies the position of data label. They are. Outside - Places label outside the point. Inside - Places label inside the point.
Declaration
public AccumulationLabelPosition Position { get; set; }
Property Value
Type | Description |
---|---|
AccumulationLabelPosition | The default value is AccumulationLabelPosition.Inside |
Rx
Declaration
public double Rx { get; set; }
Property Value
Type |
---|
System.Double |
Ry
Declaration
public double Ry { get; set; }
Property Value
Type |
---|
System.Double |
ShowZero
If set true, data label for zero values in series gets render.
Declaration
public bool ShowZero { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
Template
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 string Template { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
TextOverflow
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 LabelOverflow TextOverflow { get; set; }
Property Value
Type | Description |
---|---|
LabelOverflow | The default value is LabelOverflow.Ellipsis |
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 TextWrap TextWrap { get; set; }
Property Value
Type | Description |
---|---|
TextWrap | The default value is TextWrap.Normal |
Visible
If set true, data label for series gets render.
Declaration
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |