Class RadzenAreaSeries<TItem>
Renders area series in RadzenChart.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenAreaSeries<TItem> : CartesianSeries<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IChartSeries, IDisposableType Parameters
| Name | Description | 
|---|---|
| TItem | 
Constructors
RadzenAreaSeries()
Renders area series in RadzenChart.
Declaration
public RadzenAreaSeries()Properties
Color
Gets the color.
Declaration
public override string Color { get; }Property Value
| Type | Description | 
|---|---|
| string | The color. | 
Overrides
Fill
Specifies the fill (background color) of the area series.
Declaration
[Parameter]
public string Fill { get; set; }Property Value
| Type | Description | 
|---|---|
| string | The fill. | 
Interpolation
Specifies how to render lines between data points. Set to Line by default
Declaration
[Parameter]
public Interpolation Interpolation { get; set; }Property Value
| Type | Description | 
|---|---|
| Interpolation | 
LineType
Specifies the line type.
Declaration
[Parameter]
public LineType LineType { get; set; }Property Value
| Type | Description | 
|---|---|
| LineType | 
Smooth
Specifies whether to render a smooth line. Set to false by default.
Declaration
[Parameter]
public bool Smooth { get; set; }Property Value
| Type | Description | 
|---|---|
| bool | 
Stroke
Specifies the color of the line.
Declaration
[Parameter]
public string Stroke { get; set; }Property Value
| Type | Description | 
|---|---|
| string | The stroke. | 
StrokeWidth
Gets or sets the pixel width of the line. Set to 2 by default.
Declaration
[Parameter]
public double StrokeWidth { get; set; }Property Value
| Type | Description | 
|---|---|
| double | The width of the stroke. | 
Methods
BuildRenderTree(RenderTreeBuilder)
Renders area series in RadzenChart.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)Parameters
| Type | Name | Description | 
|---|---|---|
| RenderTreeBuilder | __builder | 
Overrides
Contains(double, double, double)
Determines if the series contains the specified coordinates with a given tolerance.
Declaration
public override bool Contains(double x, double y, double tolerance)Parameters
| Type | Name | Description | 
|---|---|---|
| double | x | The x. | 
| double | y | The y. | 
| double | tolerance | The tolerance. | 
Returns
| Type | Description | 
|---|---|
| bool | 
 | 
Overrides
GetDataLabels(double, double)
Returns data chart position
Declaration
public override IEnumerable<ChartDataLabel> GetDataLabels(double offsetX, double offsetY)Parameters
| Type | Name | Description | 
|---|---|---|
| double | offsetX | |
| double | offsetY | 
Returns
| Type | Description | 
|---|---|
| IEnumerable<ChartDataLabel> | 
Overrides
Render(ScaleBase, ScaleBase)
Renders the series with the specified category and value scales.
Declaration
public override RenderFragment Render(ScaleBase categoryScale, ScaleBase valueScale)Parameters
| Type | Name | Description | 
|---|---|---|
| ScaleBase | categoryScale | The category scale. | 
| ScaleBase | valueScale | The value scale. | 
Returns
| Type | Description | 
|---|---|
| RenderFragment | RenderFragment. | 
Overrides
TooltipStyle(TItem)
Gets the tooltip inline style.
Declaration
protected override string TooltipStyle(TItem item)Parameters
| Type | Name | Description | 
|---|---|---|
| TItem | item | The item. | 
Returns
| Type | Description | 
|---|---|
| string |