Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenSeriesDataLabels

    Displays the series values as text labels.

    Inheritance
    System.Object
    RadzenSeriesDataLabels
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenSeriesDataLabels : object
    Examples
      <RadzenChart>
          <RadzenLineSeries Data=@revenue CategoryProperty="Quarter" ValueProperty="Revenue">
             <RadzenSeriesDataLabels />
          </RadzenLineSeries>
      </RadzenChart>
      @code {
          class DataItem
          {
              public string Quarter { get; set; }
              public double Revenue { get; set; }
          }
          DataItem[] revenue = new DataItem[]
          {
              new DataItem { Quarter = "Q1", Revenue = 234000 },
              new DataItem { Quarter = "Q2", Revenue = 284000 },
              new DataItem { Quarter = "Q3", Revenue = 274000 },
              new DataItem { Quarter = "Q4", Revenue = 294000 }
          };
      }

    Properties

    Fill

    Defines the fill color of the component.

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

    OffsetX

    Horizontal offset from the default position.

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

    OffsetY

    Vertical offset from the default position.

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

    Visible

    Determines the visibility of the data labels. Set to true by default.

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

    Methods

    GetSeriesDataLabelClass()

    Gets the CSS class for the data labels.

    Declaration
    public string GetSeriesDataLabelClass()
    Returns
    Type Description
    System.String

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT