Displays a reference line at a fixed value over a chart series. Use it to highlight targets, thresholds or limits on the value axis.
Object
ComponentBase
RadzenSeriesValueLine.BuildRenderTree
RadzenSeriesValueLine.Contains
RadzenSeriesValueLine.RenderTooltip
RadzenSeriesValueLine.GetTooltipPosition
RadzenSeriesValueLine.TooltipTemplate
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
public class RadzenSeriesReferenceLine : RadzenSeriesValueLine, IComponent, IHandleEvent, IHandleAfterRender, IChartSeriesOverlay<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 }
};
}Displays a reference line at a fixed value over a chart series. Use it to highlight targets, thresholds or limits on the value axis.
public RadzenSeriesReferenceLine()Specifies the title of the reference line. Displayed as label in the tooltip. Set to "Reference" by default.
public string Title { get; set; }
| Type | Description |
|---|---|
| string | Specifies the title of the reference line. Displayed as label in the tooltip. Set to "Reference" by default. |
protected override bool ShouldRefreshChart(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters |
| Type | Description |
|---|---|
| bool |