Skip to content

ChartTheme

ClassChartGuruChartGuru
[CreateAssetMenu(fileName = "ChartTheme", menuName = "ChartGuru/Theme")]
public class ChartTheme : ScriptableObject

No description is available for this type.

[Header("Background")]
[Tooltip("How the chart background is rendered: solid colour, 2-stop linear gradient, or 4-corner gradient.")]
public ChartBackgroundMode BackgroundMode

No description is available for this member.

Returns

ChartGuru.ChartBackgroundMode — No return description is available.

[Tooltip("Solid background colour (used when BackgroundMode = SolidColor).")]
public Color BackgroundColor

No description is available for this member.

Returns

UnityEngine.Color — No return description is available.

[Tooltip("Linear gradient for the chart Background (used when BackgroundMode = LinearGradient).")]
public LinearGradientStyle BackgroundGradient

No description is available for this member.

Returns

ChartGuru.LinearGradientStyle — No return description is available.

[Tooltip("Four-corner gradient for the chart Background (used when BackgroundMode = FourCornerGradient).")]
public FourCornerGradient BackgroundFourCorner

No description is available for this member.

Returns

ChartGuru.FourCornerGradient — No return description is available.

[Tooltip("How the plot area background is rendered: solid colour, 2-stop linear gradient, or 4-corner gradient.")]
public ChartBackgroundMode PlotAreaMode

No description is available for this member.

Returns

ChartGuru.ChartBackgroundMode — No return description is available.

[Tooltip("Solid plot area colour (used when PlotAreaMode = SolidColor).")]
public Color PlotAreaColor

No description is available for this member.

Returns

UnityEngine.Color — No return description is available.

[Tooltip("Linear gradient for the plot area Background (used when PlotAreaMode = LinearGradient).")]
public LinearGradientStyle PlotAreaGradient

No description is available for this member.

Returns

ChartGuru.LinearGradientStyle — No return description is available.

[Tooltip("Four-corner gradient for the plot area Background (used when PlotAreaMode = FourCornerGradient).")]
public FourCornerGradient PlotAreaFourCorner

No description is available for this member.

Returns

ChartGuru.FourCornerGradient — No return description is available.

[Header("Series Colors")]
public Color[] SeriesColors

No description is available for this member.

Returns

UnityEngine.Color[] — No return description is available.

[Header("Axis & Grid")]
public Color AxisLineColor

No description is available for this member.

Returns

UnityEngine.Color — No return description is available.

public Color GridLineColor

No description is available for this member.

Returns

UnityEngine.Color — No return description is available.

[Header("Typography")]
public Color TextColor

No description is available for this member.

Returns

UnityEngine.Color — No return description is available.

public Font Font

No description is available for this member.

Returns

UnityEngine.Font — No return description is available.

[Tooltip("Font size in points for axis tick labels.")]
[Range(6, 48)]
public int LabelFontSize

No description is available for this member.

Returns

System.Int32 — No return description is available.

[Tooltip("Font size in points for data value labels displayed above bars or at data points.")]
[Range(6, 48)]
public int DataLabelFontSize

No description is available for this member.

Returns

System.Int32 — No return description is available.

[Tooltip("Font size in points for axis title labels.")]
[Range(6, 72)]
public int TitleFontSize

No description is available for this member.

Returns

System.Int32 — No return description is available.

[Tooltip("Font size in points for legend text.")]
[Range(6, 48)]
public int LegendFontSize

No description is available for this member.

Returns

System.Int32 — No return description is available.

public FontStyle LabelFontStyle

No description is available for this member.

Returns

UnityEngine.FontStyle — No return description is available.

public FontStyle DataLabelFontStyle

No description is available for this member.

Returns

UnityEngine.FontStyle — No return description is available.

public FontStyle TitleFontStyle

No description is available for this member.

Returns

UnityEngine.FontStyle — No return description is available.

public FontStyle LegendFontStyle

No description is available for this member.

Returns

UnityEngine.FontStyle — No return description is available.

[Tooltip("Font size in points for the chart title.")]
[Range(6, 72)]
public int ChartTitleFontSize

No description is available for this member.

Returns

System.Int32 — No return description is available.

[Tooltip("Font size in points for the chart subtitle.")]
[Range(6, 48)]
public int ChartSubtitleFontSize

No description is available for this member.

Returns

System.Int32 — No return description is available.

public FontStyle ChartTitleFontStyle

No description is available for this member.

Returns

UnityEngine.FontStyle — No return description is available.

public FontStyle ChartSubtitleFontStyle

No description is available for this member.

Returns

UnityEngine.FontStyle — No return description is available.

[Header("Layout")]
[Tooltip("Spacing in pixels between legend items.")]
[Range(0, 20)]
public float LegendItemSpacing

No description is available for this member.

Returns

System.Single — No return description is available.

[Tooltip("Size of the colour swatch shown next to each legend label.")]
[Range(4, 32)]
public float LegendSymbolSize

No description is available for this member.

Returns

System.Single — No return description is available.

[Header("Scaling")]
[Tooltip("Minimum text scale factor. Use 0 for default (0.25). Use -1 for no minimum limit. Positive value sets explicit minimum.")]
[Range(-1, 2)]
public float MinTextScaleFactor

No description is available for this member.

Returns

System.Single — No return description is available.

[Tooltip("Maximum text scale factor. Use 0 for default (2.5). Use -1 for no maximum limit. Positive value sets explicit maximum.")]
[Range(-1, 5)]
public float MaxTextScaleFactor

No description is available for this member.

Returns

System.Single — No return description is available.

[Header("Strokes")]
[Tooltip("Default stroke width for axis lines in pixels.")]
[Range(0.5, 10)]
public float AxisLineWidth

No description is available for this member.

Returns

System.Single — No return description is available.

[Tooltip("Default stroke width for grid lines in pixels.")]
[Range(0.5, 10)]
public float GridLineWidth

No description is available for this member.

Returns

System.Single — No return description is available.

[Tooltip("Gap between neighbouring bar groups as a multiple of bar width. 0 = bars touch, 0.1 = gap is 10% of bar width, 1 = gap equals bar width.")]
[Range(0, 2)]
public float BarSpacing

No description is available for this member.

Returns

System.Single — No return description is available.

[Header("Effects")]
public bool EnableShadows

No description is available for this member.

Returns

System.Boolean — No return description is available.

public Color ShadowColor

No description is available for this member.

Returns

UnityEngine.Color — No return description is available.

[Tooltip("Shadow offset in pixels (X = horizontal, Y = vertical).")]
public Vector2 ShadowOffset

No description is available for this member.

Returns

UnityEngine.Vector2 — No return description is available.

[Tooltip("Blur radius for drop shadows in pixels.")]
[Range(0, 20)]
public float ShadowBlur

No description is available for this member.

Returns

System.Single — No return description is available.

public bool EnableGlow

No description is available for this member.

Returns

System.Boolean — No return description is available.

[Tooltip("Intensity of the glow effect around chart elements.")]
[Range(0, 2)]
public float GlowIntensity

No description is available for this member.

Returns

System.Single — No return description is available.

public float EffectiveMinTextScaleFactor { get; }

Gets the effective minimum text scale factor. Negative values = no limit (returns 0). Zero = use default. Positive = use that value.

Returns

System.Single — No return description is available.

public float EffectiveMaxTextScaleFactor { get; }

Gets the effective maximum text scale factor. Negative values = no limit (returns very large value). Zero = use default. Positive = use that value.

Returns

System.Single — No return description is available.

public static ChartTheme Default { get; }

No description is available for this member.

Returns

ChartGuru.ChartTheme — No return description is available.

public static ChartTheme Dark { get; }

Dark theme inspired by Apple’s Swift Charts dark-mode palette. Near-black backgrounds, light text, muted axis/grid lines, and a lightened series palette tuned for legibility on dark backgrounds.

Returns

ChartGuru.ChartTheme — No return description is available.

public float GetTextScaleFactor(Vector2 chartSize)

Calculates the text scale factor for a given chart size using this theme’s scale limits.

Parameters

Name Type Description
chartSize UnityEngine.Vector2

Returns

System.Single — No return description is available.

GetContentScaleFactor(Vector2, LegendPosition)

Section titled “GetContentScaleFactor(Vector2, LegendPosition)”
public float GetContentScaleFactor(Vector2 chartSize, LegendPosition position)

Calculates a content scale factor for a given chart size and legend position using this theme’s scale limits. For top/bottom legends, only width matters; for leading/trailing, only height. Used for legend, symbols, and other content.

Parameters

Name Type Description
chartSize UnityEngine.Vector2
position ChartGuru.LegendPosition

Returns

System.Single — No return description is available.

public Color GetSeriesColor(int index)

No description is available for this member.

Parameters

Name Type Description
index System.Int32

Returns

UnityEngine.Color — No return description is available.

public Color GetSeriesColorVariant(int index, float brightness)

No description is available for this member.

Parameters

Name Type Description
index System.Int32
brightness System.Single

Returns

UnityEngine.Color — No return description is available.

public Color GetAreaFillColor(int seriesIndex)

No description is available for this member.

Parameters

Name Type Description
seriesIndex System.Int32

Returns

UnityEngine.Color — No return description is available.

public ChartTheme Clone()

No description is available for this member.

Returns

ChartGuru.ChartTheme — No return description is available.