Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartDataLabel - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartDataLabel

    Options to customize the datalabel for the series

    Inheritance
    System.Object
    Syncfusion.Blazor.SfBaseComponent
    SfDataBoundComponent
    ChartDataLabel
    Inherited Members
    SfDataBoundComponent.SetDataManager<T>(Object)
    SfDataBoundComponent.OnAfterRenderAsync(Boolean)
    SfDataBoundComponent.DataManager
    SfDataBoundComponent.MainParent
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ChartDataLabel : SfDataBoundComponent

    Constructors

    ChartDataLabel()

    Declaration
    public ChartDataLabel()

    Properties

    Alignment

    Specifies the alignment for the datalabels

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

    Angle

    Specifies the angle at which label rotation takes place

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

    Border

    Options to customize the border of the datalabel

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

    ChildContent

    Gets and sets the content of the component

    Declaration
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment

    EnableRotation

    Enable the rotation of datalabel

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

    Fill

    Specifies the fill color of the datalabel

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

    Font

    Options to customize the text style of the datalabel

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

    LabelIntersectAction

    Specifies the label intersect action for the datalabel

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

    Margin

    Options to customize the margin for the datalabel

    Declaration
    public ChartDataLabelMargin Margin { get; set; }
    Property Value
    Type Description
    ChartDataLabelMargin

    Name

    Specifies the datalabel mapping name for the series

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

    Opacity

    Defines the opacity of the datalabel

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

    Position

    Specifies the label position of the datalabel

    Declaration
    public LabelPosition Position { get; set; }
    Property Value
    Type Description
    LabelPosition

    Rx

    Width of rounded corner in horizontal orientation

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

    Ry

    Width of rounded corner in vertical orientation

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

    Template

    Specifies the custom HTML element in place of datalabel

    Declaration
    public RenderFragment<ChartDataPointInfo> Template { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment<ChartDataPointInfo>

    Visible

    Enables the visiblity of datalabel

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

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task
    Overrides
    SfDataBoundComponent.OnInitializedAsync()

    OnParametersSetAsync()

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task
    Overrides
    SfDataBoundComponent.OnParametersSetAsync()
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved