ChartTheme
[CreateAssetMenu(fileName = "ChartTheme", menuName = "ChartGuru/Theme")]public class ChartTheme : ScriptableObjectNo description is available for this type.
Fields
Section titled “Fields”
BackgroundMode
Section titled “BackgroundMode”[Header("Background")][Tooltip("How the chart background is rendered: solid colour, 2-stop linear gradient, or 4-corner gradient.")]public ChartBackgroundMode BackgroundModeNo description is available for this member.
Returns
ChartGuru.ChartBackgroundMode — No return description is available.
BackgroundColor
Section titled “BackgroundColor”[Tooltip("Solid background colour (used when BackgroundMode = SolidColor).")]public Color BackgroundColorNo description is available for this member.
Returns
UnityEngine.Color — No return description is available.
BackgroundGradient
Section titled “BackgroundGradient”[Tooltip("Linear gradient for the chart Background (used when BackgroundMode = LinearGradient).")]public LinearGradientStyle BackgroundGradientNo description is available for this member.
Returns
ChartGuru.LinearGradientStyle — No return description is available.
BackgroundFourCorner
Section titled “BackgroundFourCorner”[Tooltip("Four-corner gradient for the chart Background (used when BackgroundMode = FourCornerGradient).")]public FourCornerGradient BackgroundFourCornerNo description is available for this member.
Returns
ChartGuru.FourCornerGradient — No return description is available.
PlotAreaMode
Section titled “PlotAreaMode”[Tooltip("How the plot area background is rendered: solid colour, 2-stop linear gradient, or 4-corner gradient.")]public ChartBackgroundMode PlotAreaModeNo description is available for this member.
Returns
ChartGuru.ChartBackgroundMode — No return description is available.
PlotAreaColor
Section titled “PlotAreaColor”[Tooltip("Solid plot area colour (used when PlotAreaMode = SolidColor).")]public Color PlotAreaColorNo description is available for this member.
Returns
UnityEngine.Color — No return description is available.
PlotAreaGradient
Section titled “PlotAreaGradient”[Tooltip("Linear gradient for the plot area Background (used when PlotAreaMode = LinearGradient).")]public LinearGradientStyle PlotAreaGradientNo description is available for this member.
Returns
ChartGuru.LinearGradientStyle — No return description is available.
PlotAreaFourCorner
Section titled “PlotAreaFourCorner”[Tooltip("Four-corner gradient for the plot area Background (used when PlotAreaMode = FourCornerGradient).")]public FourCornerGradient PlotAreaFourCornerNo description is available for this member.
Returns
ChartGuru.FourCornerGradient — No return description is available.
SeriesColors
Section titled “SeriesColors”[Header("Series Colors")]public Color[] SeriesColorsNo description is available for this member.
Returns
UnityEngine.Color[] — No return description is available.
AxisLineColor
Section titled “AxisLineColor”[Header("Axis & Grid")]public Color AxisLineColorNo description is available for this member.
Returns
UnityEngine.Color — No return description is available.
GridLineColor
Section titled “GridLineColor”public Color GridLineColorNo description is available for this member.
Returns
UnityEngine.Color — No return description is available.
TextColor
Section titled “TextColor”[Header("Typography")]public Color TextColorNo description is available for this member.
Returns
UnityEngine.Color — No return description is available.
public Font FontNo description is available for this member.
Returns
UnityEngine.Font — No return description is available.
LabelFontSize
Section titled “LabelFontSize”[Tooltip("Font size in points for axis tick labels.")][Range(6, 48)]public int LabelFontSizeNo description is available for this member.
Returns
System.Int32 — No return description is available.
DataLabelFontSize
Section titled “DataLabelFontSize”[Tooltip("Font size in points for data value labels displayed above bars or at data points.")][Range(6, 48)]public int DataLabelFontSizeNo description is available for this member.
Returns
System.Int32 — No return description is available.
TitleFontSize
Section titled “TitleFontSize”[Tooltip("Font size in points for axis title labels.")][Range(6, 72)]public int TitleFontSizeNo description is available for this member.
Returns
System.Int32 — No return description is available.
LegendFontSize
Section titled “LegendFontSize”[Tooltip("Font size in points for legend text.")][Range(6, 48)]public int LegendFontSizeNo description is available for this member.
Returns
System.Int32 — No return description is available.
LabelFontStyle
Section titled “LabelFontStyle”public FontStyle LabelFontStyleNo description is available for this member.
Returns
UnityEngine.FontStyle — No return description is available.
DataLabelFontStyle
Section titled “DataLabelFontStyle”public FontStyle DataLabelFontStyleNo description is available for this member.
Returns
UnityEngine.FontStyle — No return description is available.
TitleFontStyle
Section titled “TitleFontStyle”public FontStyle TitleFontStyleNo description is available for this member.
Returns
UnityEngine.FontStyle — No return description is available.
LegendFontStyle
Section titled “LegendFontStyle”public FontStyle LegendFontStyleNo description is available for this member.
Returns
UnityEngine.FontStyle — No return description is available.
ChartTitleFontSize
Section titled “ChartTitleFontSize”[Tooltip("Font size in points for the chart title.")][Range(6, 72)]public int ChartTitleFontSizeNo description is available for this member.
Returns
System.Int32 — No return description is available.
ChartSubtitleFontSize
Section titled “ChartSubtitleFontSize”[Tooltip("Font size in points for the chart subtitle.")][Range(6, 48)]public int ChartSubtitleFontSizeNo description is available for this member.
Returns
System.Int32 — No return description is available.
ChartTitleFontStyle
Section titled “ChartTitleFontStyle”public FontStyle ChartTitleFontStyleNo description is available for this member.
Returns
UnityEngine.FontStyle — No return description is available.
ChartSubtitleFontStyle
Section titled “ChartSubtitleFontStyle”public FontStyle ChartSubtitleFontStyleNo description is available for this member.
Returns
UnityEngine.FontStyle — No return description is available.
LegendItemSpacing
Section titled “LegendItemSpacing”[Header("Layout")][Tooltip("Spacing in pixels between legend items.")][Range(0, 20)]public float LegendItemSpacingNo description is available for this member.
Returns
System.Single — No return description is available.
LegendSymbolSize
Section titled “LegendSymbolSize”[Tooltip("Size of the colour swatch shown next to each legend label.")][Range(4, 32)]public float LegendSymbolSizeNo description is available for this member.
Returns
System.Single — No return description is available.
MinTextScaleFactor
Section titled “MinTextScaleFactor”[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 MinTextScaleFactorNo description is available for this member.
Returns
System.Single — No return description is available.
MaxTextScaleFactor
Section titled “MaxTextScaleFactor”[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 MaxTextScaleFactorNo description is available for this member.
Returns
System.Single — No return description is available.
AxisLineWidth
Section titled “AxisLineWidth”[Header("Strokes")][Tooltip("Default stroke width for axis lines in pixels.")][Range(0.5, 10)]public float AxisLineWidthNo description is available for this member.
Returns
System.Single — No return description is available.
GridLineWidth
Section titled “GridLineWidth”[Tooltip("Default stroke width for grid lines in pixels.")][Range(0.5, 10)]public float GridLineWidthNo description is available for this member.
Returns
System.Single — No return description is available.
BarSpacing
Section titled “BarSpacing”[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 BarSpacingNo description is available for this member.
Returns
System.Single — No return description is available.
EnableShadows
Section titled “EnableShadows”[Header("Effects")]public bool EnableShadowsNo description is available for this member.
Returns
System.Boolean — No return description is available.
ShadowColor
Section titled “ShadowColor”public Color ShadowColorNo description is available for this member.
Returns
UnityEngine.Color — No return description is available.
ShadowOffset
Section titled “ShadowOffset”[Tooltip("Shadow offset in pixels (X = horizontal, Y = vertical).")]public Vector2 ShadowOffsetNo description is available for this member.
Returns
UnityEngine.Vector2 — No return description is available.
ShadowBlur
Section titled “ShadowBlur”[Tooltip("Blur radius for drop shadows in pixels.")][Range(0, 20)]public float ShadowBlurNo description is available for this member.
Returns
System.Single — No return description is available.
EnableGlow
Section titled “EnableGlow”public bool EnableGlowNo description is available for this member.
Returns
System.Boolean — No return description is available.
GlowIntensity
Section titled “GlowIntensity”[Tooltip("Intensity of the glow effect around chart elements.")][Range(0, 2)]public float GlowIntensityNo description is available for this member.
Returns
System.Single — No return description is available.
Properties
Section titled “Properties”
EffectiveMinTextScaleFactor
Section titled “EffectiveMinTextScaleFactor”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.
EffectiveMaxTextScaleFactor
Section titled “EffectiveMaxTextScaleFactor”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.
Default
Section titled “Default”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.
Methods
Section titled “Methods”
GetTextScaleFactor(Vector2)
Section titled “GetTextScaleFactor(Vector2)”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.
GetSeriesColor(int)
Section titled “GetSeriesColor(int)”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.
GetSeriesColorVariant(int, float)
Section titled “GetSeriesColorVariant(int, float)”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.
GetAreaFillColor(int)
Section titled “GetAreaFillColor(int)”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.
Clone()
Section titled “Clone()”public ChartTheme Clone()No description is available for this member.
Returns
ChartGuru.ChartTheme — No return description is available.