ChartTextOptions
public struct ChartTextOptionsConfiguration options for chart text rendering. Backend-agnostic settings shared by Canvas TMP labels, UI Toolkit labels, and editor previews.
Fields
Section titled “Fields”
public Color ColorText color.
Returns
UnityEngine.Color
FontSize
Section titled “FontSize”public int FontSizeFont size in points.
Returns
System.Int32
FontAsset
Section titled “FontAsset”public Object FontAssetFont asset reference. Canvas labels expect TMP_FontAsset; editor and UI Toolkit surfaces may use their native font assets.
Returns
UnityEngine.Object
FontStyle
Section titled “FontStyle”public ChartFontStyle FontStyleFont style (normal, bold, italic, etc.)
Returns
ChartGuru.ChartFontStyle
Alignment
Section titled “Alignment”public ChartTextAlignment AlignmentText alignment.
Returns
ChartGuru.ChartTextAlignment
CustomTemplate
Section titled “CustomTemplate”public GameObject CustomTemplateOptional template GameObject for advanced styling (shadows, outlines, etc.) When set, this prefab is instantiated and used instead of creating a new component.
Returns
UnityEngine.GameObject
Visible
Section titled “Visible”public bool VisibleWhether this text category is visible.
Returns
System.Boolean
Properties
Section titled “Properties”
Default
Section titled “Default”public static ChartTextOptions Default { get; }Creates default text options.
Returns
ChartGuru.ChartTextOptions
AxisLabel
Section titled “AxisLabel”public static ChartTextOptions AxisLabel { get; }Creates options for axis labels.
Returns
ChartGuru.ChartTextOptions
AxisTitle
Section titled “AxisTitle”public static ChartTextOptions AxisTitle { get; }Creates options for axis titles.
Returns
ChartGuru.ChartTextOptions
DataLabel
Section titled “DataLabel”public static ChartTextOptions DataLabel { get; }Creates options for data labels.
Returns
ChartGuru.ChartTextOptions
Legend
Section titled “Legend”public static ChartTextOptions Legend { get; }Creates options for legend text.
Returns
ChartGuru.ChartTextOptions
public static ChartTextOptions Title { get; }Creates options for chart title.
Returns
ChartGuru.ChartTextOptions
Subtitle
Section titled “Subtitle”public static ChartTextOptions Subtitle { get; }Creates options for chart subtitle.
Returns
ChartGuru.ChartTextOptions
Tooltip
Section titled “Tooltip”public static ChartTextOptions Tooltip { get; }Creates options for tooltip text.
Returns
ChartGuru.ChartTextOptions