Skip to content

FieldColorBuilder🔗

Map a field to a color.

Constructor🔗

new FieldColorBuilder()

Methods🔗

build🔗

Builds the object.

build()

fixedColor🔗

The fixed color value for fixed or shades color modes.

fixedColor(string $fixedColor)

gradientColorTo🔗

The end color for the gradient color mode (smallest value). Only used when mode is gradient.

gradientColorTo(string $gradientColorTo)

mode🔗

The main color scheme mode.

mode(\Grafana\Foundation\Dashboardv2\FieldColorModeId $mode)

seriesBy🔗

Some visualizations need to know how to assign a series color from by value color schemes.

seriesBy(\Grafana\Foundation\Dashboardv2\FieldColorSeriesByMode $seriesBy)

See also🔗