API Reference@grafana/dataAsNumberVector

AsNumberVector class

This will force all values to be numbers

Signature

export declare class AsNumberVector extends FunctionalVector<number> 

Import

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

Constructors

ConstructorModifiersDescription
constructor(field)Constructs a new instance of the AsNumberVector class

Properties

PropertyModifiersTypeDescription
lengthnumber

Methods

MethodModifiersDescription
get(index)

constructor(field)

Constructs a new instance of the AsNumberVector class

Signature

constructor(field: Vector);

Parameters

ParameterTypeDescription
fieldVector

length property

Signature

get length(): number;

get method

Signature

get(index: number): number;

Parameters

ParameterTypeDescription
indexnumber

Returns:

number