menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AccumulationDataLabelSettings - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class AccumulationDataLabelSettings

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    AccumulationDataLabelSettings
    Namespace: Syncfusion.EJ2.Charts
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class AccumulationDataLabelSettings : EJTagHelper

    Constructors

    AccumulationDataLabelSettings()

    Declaration
    public AccumulationDataLabelSettings()

    Properties

    Angle

    Specifies the rotation angle of the data label.

    Declaration
    public double Angle { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 0

    Border

    Configures the appearance of the border lines with options for width and color properties.

    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
    Syncfusion.EJ2.MvcTemplate<System.Object>

    EnableRotation

    If set to true, the data label will be rotated according to the specified angle.

    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 accepts hex and rgba values as valid CSS color strings.

    Declaration
    public string Fill { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "transparent"

    Font

    Customizes the appearance of the data label text with options for font size, color, style, weight, and family.

    Declaration
    public AccumulationChartFont Font { get; set; }
    Property Value
    Type Description
    AccumulationChartFont

    The default value is null

    Format

    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 string Format { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    MaxWidth

    Use this property to limit the label width and apply wrapping or trimming.

    Declaration
    public double MaxWidth { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is Double.NaN

    Name

    Specifies the data source field that 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 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 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 to true, the data label for zero values in the series will be rendered.

    Declaration
    public bool ShowZero { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    Template

    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 string Template { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    TextOverflow

    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 LabelOverflow TextOverflow { get; set; }
    Property Value
    Type Description
    LabelOverflow

    The default value is LabelOverflow.Ellipsis

    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 TextWrap TextWrap { get; set; }
    Property Value
    Type Description
    TextWrap

    The default value is TextWrap.Normal

    Visible

    If set to true, data labels for the series are render. By default, it is set to false.

    Declaration
    public bool Visible { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved