menu

ASP.NET Core - EJ2

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

    Show / Hide Table of Contents

    Class ChartDataLabelSettingsBuilder

    Inheritance
    System.Object
    ControlBuilder
    ChartDataLabelSettingsBuilder
    Inherited Members
    ControlBuilder.Output
    ControlBuilder.Context
    Namespace: Syncfusion.EJ2.Charts
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class ChartDataLabelSettingsBuilder : ControlBuilder

    Constructors

    ChartDataLabelSettingsBuilder()

    Declaration
    public ChartDataLabelSettingsBuilder()

    ChartDataLabelSettingsBuilder(ChartDataLabelSettings)

    Declaration
    public ChartDataLabelSettingsBuilder(ChartDataLabelSettings model)
    Parameters
    Type Name Description
    ChartDataLabelSettings model

    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 ChartDataLabelSettingsBuilder Alignment(Alignment value)
    Parameters
    Type Name Description
    Alignment value
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    Angle(Double)

    Specifies angle for data label.

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

    Border(ChartBorder)

    Option for customizing the border lines.

    Declaration
    public ChartDataLabelSettingsBuilder Border(ChartBorder value)
    Parameters
    Type Name Description
    ChartBorder value
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    Border(Action<ChartBorderBuilder>)

    Declaration
    public ChartDataLabelSettingsBuilder Border(Action<ChartBorderBuilder> border)
    Parameters
    Type Name Description
    System.Action<ChartBorderBuilder> border
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    EnableRotation(Boolean)

    Enables rotation for data label.

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

    Fill(String)

    The background color of the data label accepts value in hex and rgba as a valid CSS color string.

    Declaration
    public ChartDataLabelSettingsBuilder Fill(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    Font(ChartFont)

    Option for customizing the data label text.

    Declaration
    public ChartDataLabelSettingsBuilder Font(ChartFont value)
    Parameters
    Type Name Description
    ChartFont value
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    Font(Action<ChartFontBuilder>)

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

    Format(String)

    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 ChartDataLabelSettingsBuilder Format(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    LabelIntersectAction(DataLabelIntersectAction)

    Show Datalabel Even two Data Labels Are Overflow.

    Declaration
    public ChartDataLabelSettingsBuilder LabelIntersectAction(DataLabelIntersectAction value)
    Parameters
    Type Name Description
    DataLabelIntersectAction value
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    Margin(ChartMargin)

    Margin configuration for the data label.

    Declaration
    public ChartDataLabelSettingsBuilder Margin(ChartMargin value)
    Parameters
    Type Name Description
    ChartMargin value
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    Margin(Action<ChartMarginBuilder>)

    Declaration
    public ChartDataLabelSettingsBuilder Margin(Action<ChartMarginBuilder> margin)
    Parameters
    Type Name Description
    System.Action<ChartMarginBuilder> margin
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    Name(String)

    The DataSource field that contains the data label value.

    Declaration
    public ChartDataLabelSettingsBuilder Name(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    Opacity(Double)

    The opacity for the background.

    Declaration
    public ChartDataLabelSettingsBuilder Opacity(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    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 ChartDataLabelSettingsBuilder Position(LabelPosition value)
    Parameters
    Type Name Description
    LabelPosition value
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    Rx(Double)

    The roundedCornerX for the data label. It requires border values not to be null.

    Declaration
    public ChartDataLabelSettingsBuilder Rx(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    Ry(Double)

    The roundedCornerY for the data label. It requires border values not to be null.

    Declaration
    public ChartDataLabelSettingsBuilder Ry(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    ShowZero(Boolean)

    If set true, data label for zero values in series renders.

    Declaration
    public ChartDataLabelSettingsBuilder ShowZero(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    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 ChartDataLabelSettingsBuilder Template(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type Description
    ChartDataLabelSettingsBuilder

    Visible(Boolean)

    If set true, data label for series renders.

    Declaration
    public ChartDataLabelSettingsBuilder Visible(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type Description
    ChartDataLabelSettingsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved