FieldColor interface

Signature

  1. export interface FieldColor

Import

  1. import { FieldColor } from '@grafana/data';

Properties

PropertyTypeDescription
fixedColorstringStores the fixed color value if mode is fixed
modeFieldColorModeId | stringThe main color scheme mode
seriesByFieldColorSeriesByModeSome visualizations need to know how to assign a series color from by value color schemes

fixedColor property

Stores the fixed color value if mode is fixed

Signature

  1. fixedColor?: string;

mode property

The main color scheme mode

Signature

  1. mode: FieldColorModeId | string;

seriesBy property

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

Signature

  1. seriesBy?: FieldColorSeriesByMode;