guessFieldTypeFromNameAndValue() function

guessFieldTypeFromNameAndValue() function

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

Signature

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

Import

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

Parameters

ParameterTypeDescription
namestring
vany

Returns:

FieldType