Class RadzenLineSeries<TItem>
Renders line series in RadzenChart.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenLineSeries<TItem> : CartesianSeries<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IChartSeries, IDisposable
Type Parameters
Name | Description |
---|---|
TItem | The type of the series data item. |
Constructors
RadzenLineSeries()
Renders line series in RadzenChart.
Declaration
public RadzenLineSeries()
Properties
Color
Gets the color.
Declaration
public override string Color { get; }
Property Value
Type | Description |
---|---|
string | The color. |
Overrides
Interpolation
Specifies how to render lines between data points. Set to Radzen.Blazor.Rendering.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
Specifies the pixel width of the line. Set to 2
by default.
Declaration
[Parameter]
public double StrokeWidth { get; set; }
Property Value
Type | Description |
---|---|
double |
Methods
BuildRenderTree(RenderTreeBuilder)
Renders line 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 |