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
[HtmlAttributeName("angle")]
public double Angle { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
Border
Option for customizing the border lines.
Declaration
[HtmlAttributeName("border")]
public object Border { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
ConnectorStyle
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
[HtmlAttributeName("connectorStyle")]
public AccumulationChartConnector ConnectorStyle { get; set; }
Property Value
Type | Description |
---|---|
AccumulationChartConnector | The default value is null |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type | Description |
---|---|
MvcTemplate<System.Object> |
EnableRotation
Enables rotation for data label.
Declaration
[HtmlAttributeName("enableRotation")]
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
[HtmlAttributeName("fill")]
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
[HtmlAttributeName("font")]
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
[HtmlAttributeName("format")]
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
[HtmlAttributeName("maxWidth")]
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
[HtmlAttributeName("name")]
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
[HtmlAttributeName("position")]
public AccumulationLabelPosition Position { get; set; }
Property Value
Type | Description |
---|---|
AccumulationLabelPosition | The default value is AccumulationLabelPosition.Inside |
Rx
The roundedCornerX for the data label. It requires border
values not to be null.
Declaration
[HtmlAttributeName("rx")]
public double Rx { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 5 |
Ry
The roundedCornerY for the data label. It requires border
values not to be null.
Declaration
[HtmlAttributeName("ry")]
public double Ry { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 5 |
ShowZero
If set true, data label for zero values in series gets render.
Declaration
[HtmlAttributeName("showZero")]
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
[HtmlAttributeName("template")]
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
[HtmlAttributeName("textOverflow")]
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
[HtmlAttributeName("textWrap")]
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
[HtmlAttributeName("visible")]
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |