API Reference@grafana/data › guessFieldTypeForField

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