Class SvgLine
Represents a Blazor component that renders an SVG line element used for axis lines, grid lines, and crosshairs in charts.
Inherited Members
Namespace: Syncfusion.Blazor.DataVizCommon
Assembly: Syncfusion.Blazor.dll
Syntax
public class SvgLine : SvgClass, IComponent, IHandleEvent, IHandleAfterRender
Constructors
SvgLine()
Declaration
public SvgLine()
Properties
AccessibilityText
Gets or sets the accessibility text used as an ARIA label for screen readers.
Declaration
[Parameter]
public string AccessibilityText { get; set; }
Property Value
| Type |
|---|
| string |
Id
Gets or sets the unique identifier for the SVG line element.
Declaration
[Parameter]
public override string Id { get; set; }
Property Value
| Type |
|---|
| string |
Overrides
Opacity
Gets or sets the opacity of the line, ranging from 0 (transparent) to 1 (opaque).
Declaration
[Parameter]
public double Opacity { get; set; }
Property Value
| Type |
|---|
| double |
Stroke
Gets or sets the stroke color of the line.
Declaration
[Parameter]
public string Stroke { get; set; }
Property Value
| Type |
|---|
| string |
StrokeWidth
Gets or sets the stroke width of the line.
Declaration
[Parameter]
public double StrokeWidth { get; set; }
Property Value
| Type |
|---|
| double |
X1
Gets or sets the x-axis coordinate of the starting point of the line.
Declaration
[Parameter]
public double X1 { get; set; }
Property Value
| Type |
|---|
| double |
X2
Gets or sets the x-axis coordinate of the ending point of the line.
Declaration
[Parameter]
public double X2 { get; set; }
Property Value
| Type |
|---|
| double |
Y1
Gets or sets the y-axis coordinate of the starting point of the line.
Declaration
[Parameter]
public double Y1 { get; set; }
Property Value
| Type |
|---|
| double |
Y2
Gets or sets the y-axis coordinate of the ending point of the line.
Declaration
[Parameter]
public double Y2 { get; set; }
Property Value
| Type |
|---|
| double |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |