API Reference@grafana/data › guessFieldTypeFromNameAndValue

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