SwiftChartsDefaults
public static class SwiftChartsDefaultsCanonical Swift Charts defaults used as the single source of truth for the code generator, Swift importer, mark constructors, and ChartBuilder. Values here match what Swift Charts produces when no modifier is applied. Any change here automatically propagates to all consumers.
Fields
Section titled “Fields”
CornerRadius
Section titled “CornerRadius”public const float CornerRadius = 8Returns
System.Single
LineWidth
Section titled “LineWidth”public const float LineWidth = 2Returns
System.Single
SymbolSize
Section titled “SymbolSize”public const float SymbolSize = 8Returns
System.Single
Symbol
Section titled “Symbol”public const SymbolShape Symbol = AutomaticReturns
ChartGuru.SymbolShape
Interpolation
Section titled “Interpolation”public const InterpolationMethod Interpolation = LinearReturns
ChartGuru.InterpolationMethod
StackingMethod
Section titled “StackingMethod”public const MarkStackingMethod StackingMethod = UnstackedReturns
ChartGuru.MarkStackingMethod
InnerRadius
Section titled “InnerRadius”public const float InnerRadius = 0.5Returns
System.Single
ShowAreaLine
Section titled “ShowAreaLine”public const bool ShowAreaLine = falseReturns
System.Boolean
LegendPosition
Section titled “LegendPosition”public const LegendPosition LegendPosition = AutomaticReturns
ChartGuru.LegendPosition
LegendAlignment
Section titled “LegendAlignment”public const LegendAlignment LegendAlignment = AutomaticReturns
ChartGuru.LegendAlignment
AxisPosition
Section titled “AxisPosition”public const AxisPosition AxisPosition = AutoReturns
ChartGuru.AxisPosition
AxisTickCount
Section titled “AxisTickCount”public const int AxisTickCount = 5Returns
System.Int32
AxisTickFormat
Section titled “AxisTickFormat”public const string AxisTickFormat = "F0"Returns
System.String
GridLineDash
Section titled “GridLineDash”public static readonly float[] GridLineDashReturns
System.Single[]
GridLineWidth
Section titled “GridLineWidth”public const float GridLineWidth = 0.5Returns
System.Single
Methods
Section titled “Methods”
GetSeriesColor(int)
Section titled “GetSeriesColor(int)”public static Color GetSeriesColor(int index)Returns the default palette color for a wrapping series index. Negative indices resolve to the first color.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
Returns
UnityEngine.Color
CreateDefaultSeriesColors()
Section titled “CreateDefaultSeriesColors()”public static Color[] CreateDefaultSeriesColors()Returns an independent copy of the default series palette that callers may modify safely.
Returns
UnityEngine.Color[]