Skip to content

ChartLayerStyle

ClassChartGuruChartGuru
public sealed class ChartLayerStyle

Serializable mark styling for one layer. The fields mirror the mark modifiers of the fluent API, so a definition and an equivalent builder chain produce the same marks.

public ChartLayerStyle Clone()

Returns a deep copy.

Returns

ChartGuru.ChartLayerStyle

public ChartLayerStyle()

public ChartLayerColorMode ColorMode { get; set; }

Returns

ChartGuru.ChartLayerColorMode

public Color Color { get; set; }

Returns

UnityEngine.Color

public LinearGradientStyle Gradient { get; set; }

Returns

ChartGuru.LinearGradientStyle

public float Opacity { get; set; }

Returns

System.Single

public MarkStackingMethod Stacking { get; set; }

How bars and areas of different series combine at the same X value. While ChartLayerStyle.AutomaticStacking is on, this is the method of the layer’s mark: areas stack like Swift Charts’ AreaMark and other marks keep series apart. Setting a method turns automatic stacking off, so the layer keeps it whatever its mark.

Returns

ChartGuru.MarkStackingMethod

public bool AutomaticStacking { get; set; }

True while series combine as the layer’s mark does in Swift Charts, the default. Turning it off keeps the current ChartLayerStyle.Stacking.

Returns

System.Boolean

public BarLayout BarLayout { get; set; }

Returns

ChartGuru.BarLayout

public MarkDimension BarWidth { get; set; }

Returns

ChartGuru.MarkDimension

public MarkDimension BarHeight { get; set; }

Returns

ChartGuru.MarkDimension

public float CornerRadius { get; set; }

Returns

System.Single

public float ClipInset { get; set; }

Returns

System.Single

public InterpolationMethod Interpolation { get; set; }

Returns

ChartGuru.InterpolationMethod

public float LineWidth { get; set; }

Returns

System.Single

public bool ShowSymbols { get; set; }

Returns

System.Boolean

public SymbolShape Symbol { get; set; }

Returns

ChartGuru.SymbolShape

public float SymbolSize { get; set; }

Returns

System.Single

public bool ShowAreaLine { get; set; }

Returns

System.Boolean

public bool UseGradientForLine { get; set; }

Returns

System.Boolean

public float InnerRadius { get; set; }

Returns

System.Single

public float AngularInset { get; set; }

Returns

System.Single

public RadarRingStyle RadarRingStyle { get; set; }

Returns

ChartGuru.RadarRingStyle

public float CellPadding { get; set; }

Returns

System.Single

public float CellCornerRadius { get; set; }

Returns

System.Single

public float[] LineDash { get; set; }

Returns

System.Single[]

public ChartLayerAnnotation Annotation { get; }

Returns

ChartGuru.ChartLayerAnnotation