Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

FieldColorMode interface

Signature

typescript
export interface FieldColorMode extends RegistryItem 

Import

typescript
import { FieldColorMode } from '@grafana/data';

Properties

PropertyTypeDescription
colorsstring[]
getCalculator(field: Field, theme: GrafanaTheme) => FieldValueColorCalculator
isByValueboolean
isContinuousboolean

colors property

Signature

typescript
colors?: string[];

getCalculator property

Signature

typescript
getCalculator: (field: Field, theme: GrafanaTheme) => FieldValueColorCalculator;

isByValue property

Signature

typescript
isByValue?: boolean;

isContinuous property

Signature

typescript
isContinuous?: boolean;