FieldColorMode interface

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Signature

  1. export interface FieldColorMode extends RegistryItem

Import

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

Properties

PropertyTypeDescription
getCalculator(field: Field, theme: GrafanaTheme2) => FieldValueColorCalculator(BETA)
getColors(theme: GrafanaTheme2) => string[](BETA)
isByValueboolean(BETA)
isContinuousboolean(BETA)

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

getCalculator property

Signature

  1. getCalculator: (field: Field, theme: GrafanaTheme2) => FieldValueColorCalculator;

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

getColors property

Signature

  1. getColors?: (theme: GrafanaTheme2) => string[];

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

isByValue property

Signature

  1. isByValue?: boolean;

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

isContinuous property

Signature

  1. isContinuous?: boolean;