Skip to content

SymbolShapeExtensions

ClassChartGuruChartGuru
public static class SymbolShapeExtensions

Fluent extensions on SymbolShape mirroring Swift Charts' BasicChartSymbolShape.StrokeBorder(lineWidth:).

public static SymbolStyle StrokeBorder(this SymbolShape shape, float lineWidth = 1)

Returns a SymbolStyle that draws the symbol as an outline. Swift Charts: .Symbol(.circle.StrokeBorder(lineWidth: 2)).

Parameters

NameType
shapeChartGuru.SymbolShape
lineWidthSystem.Single

Returns

ChartGuru.SymbolStyle

public static SymbolStyle StrokeBorder(this SymbolShape shape, StrokeStyle style)

Returns a SymbolStyle that draws the symbol as an outline using the supplied StrokeStyle.

Parameters

NameType
shapeChartGuru.SymbolShape
styleChartGuru.StrokeStyle

Returns

ChartGuru.SymbolStyle