LegendItemBuilder
public class LegendItemBuilderMutable, 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.
Fields
Section titled “Fields”
public string LabelReturns
System.String
SwatchColor
Section titled “SwatchColor”public Color SwatchColorReturns
UnityEngine.Color
Hidden
Section titled “Hidden”public bool HiddenReturns
System.Boolean
Constructors
Section titled “Constructors”
LegendItemBuilder(string, Color)
Section titled “LegendItemBuilder(string, Color)”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 |