This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/dataguessFieldTypeForField

guessFieldTypeForField() function

guessFieldTypeForField() function

Looks at the data to guess the column type. This ignores any existing setting

Signature

export declare function guessFieldTypeForField(field: Field): FieldType | undefined;

Import

import { guessFieldTypeForField } from '@grafana/data';

Parameters

Parameter Type Description
field Field

Returns:

FieldType | undefined