Skip to content

ChartEditorTextOptions

StructChartGuruChartGuru.Editor
public struct ChartEditorTextOptions

Options for ChartGuru.ChartEditorGUI.DrawChartText(UnityEngine.Rect%2cChartGuru.ChartRenderer%2cChartGuru.Chart). All fields are optional — sensible defaults are derived from the Chart’s theme.

public bool ShowDataLabels

Whether to draw data labels (value labels on each data point).

Returns

System.Boolean — No return description is available.

public bool AutoContrastText

Whether to auto-contrast data label text color against the mark color when the label sits inside the mark.

Returns

System.Boolean — No return description is available.

public Color DataLabelColorOverride

Optional color override for data labels. When set (alpha > 0), all data labels use this color instead of the theme text color.

Returns

UnityEngine.Color — No return description is available.

public Color AxisLabelColorOverride

Optional color override for axis tick labels (X/Y) and radar ring/spoke labels. When set (alpha > 0), the override replaces the theme text colour for those labels. Mirrors ChartTextManager.AxisLabelColorOverride.

Returns

UnityEngine.Color — No return description is available.

public Color LegendBackgroundHint

Optional background color for auto-contrast legend text. When set (alpha > 0), legend text color is computed for contrast against this background. When not set, the chart theme’s background color is used.

Returns

UnityEngine.Color — No return description is available.

public float ContentLeft

Content left offset for horizontal scrolling/panning scenarios. 0 for normal charts.

Returns

System.Single — No return description is available.

public float ContentHeight

Optional content height override. When 0, uses chart.Size.y. Set this to account for extra space below the plot area (axis labels, legend, etc.).

Returns

System.Single — No return description is available.

public static ChartEditorTextOptions Default { get; }

Returns default options suitable for most inspector previews.

Returns

ChartGuru.ChartEditorTextOptions — No return description is available.