Skip to content

ColorScaleLegendInfo

StructChartGuruChartGuru
public struct ColorScaleLegendInfo

Information for rendering a continuous color scale legend bar (e.g. for heatmaps).

public Rect BarRect

Screen-space rectangle for the gradient bar.

Returns

UnityEngine.Rect — No return description is available.

public ColorScale Scale

The color scale providing the gradient.

Returns

ChartGuru.ColorScale — No return description is available.

public List<(float value, float position, string label)> Ticks

Tick values and their screen positions (Y for vertical, X for horizontal).

Returns

System.Collections.Generic.List{System.ValueTuple{System.Single,System.Single,System.String}} — No return description is available.

public bool IsHorizontal

Whether the bar is horizontal (bottom/top) or vertical (trailing/leading).

Returns

System.Boolean — No return description is available.

public bool IsValid

Whether this legend info is valid and should be rendered.

Returns

System.Boolean — No return description is available.