Skip to content

LegendItemBuilder

ClassChartGuruChartGuru
public class LegendItemBuilder

Mutable, callback-scoped view of a legend entry passed to ChartGuru.LegendConfig.ItemRenderer. The same instance may be reused across entries and layout passes, so callbacks should not retain it.

public string Label

Returns

System.String

public Color SwatchColor

Returns

UnityEngine.Color

public bool Hidden

Returns

System.Boolean

public LegendItemBuilder(string label, Color swatchColor)

Creates a Legend Item Builder backed by the supplied label, and swatch color; fluent changes are accumulated until the configuration is built.

Parameters

Name Type
label System.String
swatchColor UnityEngine.Color