Skip to content

ChartTooltipContentBuilder

ClassChartGuruChartGuru
public sealed class ChartTooltipContentBuilder

Fluent writer passed to custom tooltip content callbacks.

public ChartTooltipContentBuilder Clear()

Removes all current content.

Returns

ChartGuru.ChartTooltipContentBuilder

public ChartTooltipContentBuilder Title(string text)

Sets the primary heading.

Parameters

Name Type
text System.String

Returns

ChartGuru.ChartTooltipContentBuilder

public ChartTooltipContentBuilder Subtitle(string text)

Sets the secondary heading.

Parameters

Name Type
text System.String

Returns

ChartGuru.ChartTooltipContentBuilder

public ChartTooltipContentBuilder Row(string label, string value)

Adds a label/value row without a series swatch.

Parameters

Name Type
label System.String
value System.String

Returns

ChartGuru.ChartTooltipContentBuilder

public ChartTooltipContentBuilder Row(string label, string value, Color color)

Adds a label/value row with a series swatch.

Parameters

Name Type
label System.String
value System.String
color UnityEngine.Color

Returns

ChartGuru.ChartTooltipContentBuilder

public ChartTooltipContentBuilder Footer(string text)

Sets the optional footer.

Parameters

Name Type
text System.String

Returns

ChartGuru.ChartTooltipContentBuilder