Displays the trend of a chart series.
RadzenGridLines.ShouldRefreshChart
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 RadzenSeriesTrendLine : RadzenGridLines, IComponent, IHandleEvent, IHandleAfterRender, IChartSeriesOverlay<RadzenChart>
<RadzenLineSeries Data=@revenue CategoryProperty="Quarter" ValueProperty="Revenue">
<RadzenSeriesTrendLine />
</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 the trend of a chart series.
public RadzenSeriesTrendLine()protected IChartSeries Series { get; set; }
| Type | Description |
|---|---|
| IChartSeries |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
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 |