Displays a text label for the specified data item from the series.
RadzenChartComponentBase.Initialize
RadzenChartComponentBase.SetParametersAsync
RadzenChartComponentBase.ValidateParameters
RadzenChartComponentBase.DidParameterChange
RadzenChartComponentBase.Chart
ComponentBase.BuildRenderTree
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 RadzenSeriesAnnotation<TItem> : RadzenChartComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IChartSeriesOverlay| Name | Description |
|---|---|
| TItem |
<RadzenChart>
<RadzenLineSeries Data=@revenue CategoryProperty="Quarter" ValueProperty="Revenue">
<RadzenSeriesAnnotation Data="@revenue[1] Text="Q2 Revenue" />
</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 text label for the specified data item from the series.
public RadzenSeriesAnnotation<TItem>()The data item from the series this annotation applies to.
public TItem Data { get; set; }
| Type | Description |
|---|---|
| TItem | The data item from the series this annotation applies to. |
The color of the annotation text.
public string Fill { get; set; }
| Type | Description |
|---|---|
| string | The color of the annotation text. |
Horizontal offset from the default position.
public double OffsetX { get; set; }
| Type | Description |
|---|---|
| double | Horizontal offset from the default position. |
Vertical offset from the default position.
public double OffsetY { get; set; }
| Type | Description |
|---|---|
| double | Vertical offset from the default position. |
The series this annotation applies to. Set to true by default.
protected CartesianSeries<TItem> Series { get; set; }
| Type | Description |
|---|---|
| CartesianSeries<TItem> | The series this annotation applies to. Set to true by default. |
The text to display in the annotation.
public string Text { get; set; }
| Type | Description |
|---|---|
| string | The text to display in the annotation. |
Determines whether the annotation is visible. Set to true by default.
public bool Visible { get; set; }
| Type | Description |
|---|---|
| bool | Determines whether the annotation is visible. Set to true by default. |
public bool Contains(double mouseX, double mouseY, int tolerance)
| Type | Name | Description |
|---|---|---|
| double | mouseX | |
| double | mouseY | |
| int | tolerance |
| Type | Description |
|---|---|
| bool |
public Point GetTooltipPosition(double mouseX, double mouseY)
| Type | Name | Description |
|---|---|---|
| double | mouseX | |
| double | mouseY |
| Type | Description |
|---|---|
| Point |
public RenderFragment Render(ScaleBase categoryScale, ScaleBase valueScale)
| Type | Description |
|---|---|
| RenderFragment |
public RenderFragment RenderTooltip(double mouseX, double mouseY)
| Type | Name | Description |
|---|---|---|
| double | mouseX | |
| double | mouseY |
| Type | Description |
|---|---|
| RenderFragment |
protected override bool ShouldRefreshChart(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters |
| Type | Description |
|---|---|
| bool |