Skip to content

PlotStyleConfig

ClassChartGuruChartGuru
[Serializable]
public class PlotStyleConfig

Configuration for plot area styling. Swift Charts equivalent of .chartPlotStyle { } modifier.

public Color BackgroundColor

Background color for the plot area.

Returns

UnityEngine.Color — No return description is available.

public bool HasExplicitBackgroundColor

Whether the background color was explicitly set by the user. When false, the plot area uses the theme color or falls through to transparent. When true, BackgroundColor is used as-is (including alpha=0 for true transparency).

Returns

System.Boolean — No return description is available.

public Color BorderColor

Border color for the plot area.

Returns

UnityEngine.Color — No return description is available.

[Tooltip("Plot area border stroke width in pixels. Set to 0 to disable.")]
[Range(0, 10)]
public float BorderWidth

Border width in pixels. Set to 0 to disable the border.

Returns

System.Single — No return description is available.

[Tooltip("Corner radius for the plot area in pixels (0 = sharp corners).")]
[Range(0, 50)]
public float CornerRadius

Corner radius for rounded plot area.

Returns

System.Single — No return description is available.

public ChartBackgroundMode BackgroundMode

How the plot area background is rendered when a per-chart override is active.

Returns

ChartGuru.ChartBackgroundMode — No return description is available.

public LinearGradientStyle BackgroundLinearGradient

Linear gradient for the plot area Background (used when BackgroundMode = LinearGradient).

Returns

ChartGuru.LinearGradientStyle — No return description is available.

public FourCornerGradient BackgroundFourCorner

Four-corner gradient for the plot area Background (used when BackgroundMode = FourCornerGradient).

Returns

ChartGuru.FourCornerGradient — No return description is available.

[Tooltip("Extra inner padding on the left (leading) side of the plot area, in pixels. Additive on top of axis/legend reservations.")]
[Range(0, 200)]
public float PaddingLeft

Additional inner padding on the left side of the plot area, in pixels.

Returns

System.Single — No return description is available.

[Tooltip("Extra inner padding on the right (trailing) side of the plot area, in pixels. Additive on top of axis/legend reservations.")]
[Range(0, 200)]
public float PaddingRight

Additional inner padding on the right side of the plot area, in pixels.

Returns

System.Single — No return description is available.

[Tooltip("Extra inner padding above the plot area, in pixels. Additive on top of axis/legend reservations.")]
[Range(0, 200)]
public float PaddingTop

Additional inner padding above the plot area, in pixels.

Returns

System.Single — No return description is available.

[Tooltip("Extra inner padding below the plot area, in pixels. Additive on top of axis/legend reservations.")]
[Range(0, 200)]
public float PaddingBottom

Additional inner padding below the plot area, in pixels.

Returns

System.Single — No return description is available.