menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AccumulationDataLabelSettingsBuilder - API Reference

    Show / Hide Table of Contents

    Class AccumulationDataLabelSettingsBuilder

    Inheritance
    System.Object
    ControlBuilder
    AccumulationDataLabelSettingsBuilder
    Inherited Members
    ControlBuilder.Output
    ControlBuilder.Context
    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()
    Namespace: Syncfusion.EJ2.Charts
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class AccumulationDataLabelSettingsBuilder : ControlBuilder

    Constructors

    AccumulationDataLabelSettingsBuilder()

    Declaration
    public AccumulationDataLabelSettingsBuilder()

    AccumulationDataLabelSettingsBuilder(AccumulationDataLabelSettings)

    Declaration
    public AccumulationDataLabelSettingsBuilder(AccumulationDataLabelSettings model)
    Parameters
    Type Name Description
    AccumulationDataLabelSettings model

    Methods

    Angle(Double)

    Specifies angle for data label.

    Declaration
    public AccumulationDataLabelSettingsBuilder Angle(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type Description
    AccumulationDataLabelSettingsBuilder

    Border(Object)

    Option for customizing the border lines.

    Declaration
    public AccumulationDataLabelSettingsBuilder Border(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type Description
    AccumulationDataLabelSettingsBuilder

    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
    Type Name Description
    AccumulationChartConnector value
    Returns
    Type Description
    AccumulationDataLabelSettingsBuilder

    ConnectorStyle(Action<AccumulationChartConnectorBuilder>)

    Declaration
    public AccumulationDataLabelSettingsBuilder ConnectorStyle(Action<AccumulationChartConnectorBuilder> connectorStyle)
    Parameters
    Type Name Description
    System.Action<AccumulationChartConnectorBuilder> connectorStyle
    Returns
    Type Description
    AccumulationDataLabelSettingsBuilder

    EnableRotation(Boolean)

    Enables rotation for data label.

    Declaration
    public AccumulationDataLabelSettingsBuilder EnableRotation(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type Description
    AccumulationDataLabelSettingsBuilder

    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
    Type Description
    AccumulationDataLabelSettingsBuilder

    Font(AccumulationChartFont)

    Option for customizing the data label text.

    Declaration
    public AccumulationDataLabelSettingsBuilder Font(AccumulationChartFont value)
    Parameters
    Type Name Description
    AccumulationChartFont value
    Returns
    Type Description
    AccumulationDataLabelSettingsBuilder

    Font(Action<AccumulationChartFontBuilder>)

    Declaration
    public AccumulationDataLabelSettingsBuilder Font(Action<AccumulationChartFontBuilder> font)
    Parameters
    Type Name Description
    System.Action<AccumulationChartFontBuilder> font
    Returns
    Type Description
    AccumulationDataLabelSettingsBuilder

    Format(String)

    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
    Type Description
    AccumulationDataLabelSettingsBuilder

    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
    Type Description
    AccumulationDataLabelSettingsBuilder

    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
    Type Description
    AccumulationDataLabelSettingsBuilder

    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
    Type Name Description
    AccumulationLabelPosition value
    Returns
    Type Description
    AccumulationDataLabelSettingsBuilder

    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
    Type Description
    AccumulationDataLabelSettingsBuilder

    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
    Type Description
    AccumulationDataLabelSettingsBuilder

    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
    Type Description
    AccumulationDataLabelSettingsBuilder

    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
    Type Description
    AccumulationDataLabelSettingsBuilder

    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
    Type Name Description
    LabelOverflow value
    Returns
    Type Description
    AccumulationDataLabelSettingsBuilder

    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
    Type Name Description
    TextWrap value
    Returns
    Type Description
    AccumulationDataLabelSettingsBuilder

    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
    Type Description
    AccumulationDataLabelSettingsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved