Class ChartLineStyle
Represents the chart line style class that can be used to customize the axis line and grid lines.
Namespace: Syncfusion.Maui.Charts
Assembly: Syncfusion.Maui.Charts.dll
Syntax
public class ChartLineStyle : Element, IThemeElement
Remarks
It provides more options to customize the chart lines.
Stroke - To customize the stroke color, refer to this Stroke property.
StrokeWidth - To modify the stroke width, refer to this StrokeWidth property.
StrokeDashArray - To customize the line with dashes and gaps, refer to this StrokeDashArray property.
Constructors
ChartLineStyle()
Initializes a new instance of the ChartLineStyle.
Declaration
public ChartLineStyle()
Fields
StrokeDashArrayProperty
Identifies the StrokeDashArray bindable property.
Declaration
public static readonly BindableProperty StrokeDashArrayProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
StrokeProperty
Identifies the Stroke bindable property.
Declaration
public static readonly BindableProperty StrokeProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
StrokeWidthProperty
Identifies the StrokeWidth bindable property.
Declaration
public static readonly BindableProperty StrokeWidthProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Properties
Stroke
Gets or sets a value to customize the stroke color of the chart lines.
Declaration
public Brush Stroke { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | It accepts Microsoft.Maui.Controls.Brush values. |
StrokeDashArray
Gets or sets a value to customize the appearance of the chart lines.
Declaration
public DoubleCollection StrokeDashArray { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.DoubleCollection | It accepts Microsoft.Maui.Controls.DoubleCollection values. |
StrokeWidth
Gets or sets a value that indicates the width of the chart lines.
Declaration
public double StrokeWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts System.Double values and the defaule value is 1. |