alexa
Syncfusion
menu Syncfusion

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class ChartSmartLabelSettings

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    ChartSmartLabelSettings
    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 ChartSmartLabelSettings : EJTagHelper

    Constructors

    ChartSmartLabelSettings()

    Declaration
    public ChartSmartLabelSettings()

    Properties

    Background

    The background color for the relocated label.

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

    The default value is null

    Border

    The border properties for the relocated label.

    Declaration
    public ChartBorder Border { get; set; }
    Property Value
    Type Description
    ChartBorder

    The default value is null

    ConnectorLineStyle

    The connector line properties for the relocated label.

    Declaration
    public ChartConnectorLineStyle ConnectorLineStyle { get; set; }
    Property Value
    Type Description
    ChartConnectorLineStyle

    The default value is null

    ContentTemplate

    To get or set value for ContentTemplate.

    Declaration
    public MvcTemplate<object> ContentTemplate { get; set; }
    Property Value
    Type
    Syncfusion.EJ2.MvcTemplate<System.Object>

    Offset

    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 double Offset { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 0.5

    PointerShape

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

    The default value is RelocatePointerShape.Arrow

    SeriesOverlapAction

    Specifies the action to take when a data label overlaps a series element, such as a line, trendline, area region, column, bar, or other series shape. Available options: None - Displays all data labels even if they overlap series elements. Hide - Hides only the overlapping labels. Labels are not repositioned by this property. Repositioning is handled by enableSmartLabels. If Smart Labels are enabled, the framework attempts to find a free position before hiding the label. The rectangular element belonging to the label's own point (such as its column or bar) is not treated as an overlap.

    Declaration
    public SeriesOverlapAction SeriesOverlapAction { get; set; }
    Property Value
    Type Description
    SeriesOverlapAction

    The default value is SeriesOverlapAction.None

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