Class RdbChart
public class RdbChart : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IAsyncDisposable
Inheritance
Implements
Properties
ChartId
[Parameter]
[EditorRequired]
public string ChartId { get; set; }
Height
[Parameter]
public int? Height { get; set; }
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied .
protected override void BuildRenderTree(RenderTreeBuilder __builder)
CreateAreaAsync(string[], ChartDataset[], string?)
Creates an area chart (line with fill) with the given labels and datasets.
public Task CreateAreaAsync(string[] labels, RdbChart.ChartDataset[] datasets, string? yAxisLabel = null)
CreateBarAsync(string[], ChartDataset[], string?)
Creates a bar chart with the given labels and datasets.
public Task CreateBarAsync(string[] labels, RdbChart.ChartDataset[] datasets, string? yAxisLabel = null)
CreateDonutAsync(string[], double[], string[])
Creates a donut chart with the given labels, values and colors.
public Task CreateDonutAsync(string[] labels, double[] data, string[] colors)
CreateLineAsync(string[], ChartDataset[], string?)
public Task CreateLineAsync(string[] labels, RdbChart.ChartDataset[] datasets, string? yAxisLabel = null)
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or
public ValueTask DisposeAsync()
UpdateAsync(string[], ChartDataset[])
Updates chart data without recreating it.
public Task UpdateAsync(string[] labels, RdbChart.ChartDataset[] datasets)