alexa
menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class ChartSmartLabelSettingsBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    ChartSmartLabelSettingsBuilder
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.EJ2.Charts
    Assembly: Syncfusion.AspNetMvc.Charts.dll
    Syntax
    public class ChartSmartLabelSettingsBuilder : ControlBuilder

    Constructors

    ChartSmartLabelSettingsBuilder()

    Declaration
    public ChartSmartLabelSettingsBuilder()

    ChartSmartLabelSettingsBuilder(ChartSmartLabelSettings)

    Declaration
    public ChartSmartLabelSettingsBuilder(ChartSmartLabelSettings model)
    Parameters
    Type Name Description
    ChartSmartLabelSettings model

    Methods

    Background(String)

    The background color for the relocated label.

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

    Border(ChartBorder)

    The border properties for the relocated label.

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

    Border(Action<ChartBorderBuilder>)

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

    ConnectorLineStyle(ChartConnectorLineStyle)

    The connector line properties for the relocated label.

    Declaration
    public ChartSmartLabelSettingsBuilder ConnectorLineStyle(ChartConnectorLineStyle value)
    Parameters
    Type Name Description
    ChartConnectorLineStyle value
    Returns
    Type
    ChartSmartLabelSettingsBuilder

    ConnectorLineStyle(Action<ChartConnectorLineStyleBuilder>)

    Declaration
    public ChartSmartLabelSettingsBuilder ConnectorLineStyle(Action<ChartConnectorLineStyleBuilder> connectorLineStyle)
    Parameters
    Type Name Description
    System.Action<ChartConnectorLineStyleBuilder> connectorLineStyle
    Returns
    Type
    ChartSmartLabelSettingsBuilder

    Offset(Double)

    Specifies the position of the connector line and data label for relocated labels. This property is used when a data label is relocated due to overlap with another data label. The value ranges from 0 to 1:

    • 0: Positions the connector at the start of the point region.
    • 0.5: Positions the connector at the center of the point region.
    • 1: Positions the connector at the end of the point region. This property is applicable only when labelIntersectAction is set to RelocateVertically. In vertical relocation mode, all connector lines and pointers are aligned along the same line, making it difficult to identify the corresponding data point. The offset property helps distinguish the connector position by adjusting its anchor point within the point region.
    Declaration
    public ChartSmartLabelSettingsBuilder Offset(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    ChartSmartLabelSettingsBuilder

    PointerShape(RelocatePointerShape)

    Specifies the pointer shape displayed between the connector line and the label. The available options are: None - Displays the relocated label without a pointer. Arrow - Displays an arrow pointer between the connector line and the relocated label.

    Declaration
    public ChartSmartLabelSettingsBuilder PointerShape(RelocatePointerShape value)
    Parameters
    Type Name Description
    RelocatePointerShape value
    Returns
    Type
    ChartSmartLabelSettingsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved