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

API Reference@grafana/dataguessFieldTypeFromNameAndValue

guessFieldTypeFromNameAndValue() function

guessFieldTypeFromNameAndValue() function

Given a name and value, this will pick a reasonable field type

Signature

export declare function guessFieldTypeFromNameAndValue(name: string, v: any): FieldType;

Import

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

Parameters

Parameter Type Description
name string
v any

Returns:

FieldType