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
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 |