RadzenSeriesReferenceLine Class

Displays a reference line at a fixed value over a chart series. Use it to highlight targets, thresholds or limits on the value axis.

Inheritance

Object

ComponentBase

RadzenChartComponentBase

RadzenGridLines

RadzenSeriesValueLine

RadzenSeriesReferenceLine

Implements

IComponent

IHandleEvent

IHandleAfterRender

IChartSeriesOverlay

Inherited Members

RadzenSeriesValueLine.BuildRenderTree

RadzenSeriesValueLine.Render

RadzenSeriesValueLine.Contains

RadzenSeriesValueLine.RenderTooltip

RadzenSeriesValueLine.GetTooltipPosition

RadzenSeriesValueLine.Dispose

RadzenSeriesValueLine.Value

RadzenSeriesValueLine.TooltipTemplate

RadzenSeriesValueLine.Series

RadzenGridLines.Stroke

RadzenGridLines.StrokeWidth

RadzenGridLines.LineType

RadzenGridLines.Visible

RadzenGridLines.ChartAxis

RadzenChartComponentBase.Initialize

RadzenChartComponentBase.SetParametersAsync

RadzenChartComponentBase.ValidateParameters

RadzenChartComponentBase.DidParameterChange

RadzenChartComponentBase.Chart

ComponentBase.OnInitialized

ComponentBase.OnInitializedAsync

ComponentBase.OnParametersSet

ComponentBase.OnParametersSetAsync

ComponentBase.StateHasChanged

ComponentBase.ShouldRender

ComponentBase.OnAfterRender

ComponentBase.OnAfterRenderAsync

ComponentBase.InvokeAsync

ComponentBase.DispatchExceptionAsync

ComponentBase.RendererInfo

ComponentBase.Assets

ComponentBase.AssignedRenderMode

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenSeriesReferenceLine : RadzenSeriesValueLine, IComponent, IHandleEvent, IHandleAfterRender, IChartSeriesOverlay

Examples

<RadzenChart>
    <RadzenLineSeries Data=@revenue CategoryProperty="Quarter" ValueProperty="Revenue">
       <RadzenSeriesReferenceLine Value="280000" Title="Target" />
    </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 }
    };
}

Constructors

RadzenSeriesReferenceLinelink

Displays a reference line at a fixed value over a chart series. Use it to highlight targets, thresholds or limits on the value axis.

Declaration
public RadzenSeriesReferenceLine()

Properties

Namelink

Declaration
protected string Name { get; }
Property Value
Type Description
string

Titlelink

Specifies the title of the reference line. Displayed as label in the tooltip. Set to "Reference" by default.

Declaration
public string Title { get; set; }
Property Value
Type Description
stringSpecifies the title of the reference line. Displayed as label in the tooltip. Set to "Reference" by default.

Methods

ShouldRefreshChartlink

Declaration
protected override bool ShouldRefreshChart(ParameterView parameters)
Parameters
Type Name Description
ParameterView parameters
Returns
Type Description
bool
An error has occurred. This app may no longer respond until reloaded. Reload 🗙