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

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

Constructor Modifiers Description
constructor(field) Constructs a new instance of the AsNumberVector class

Properties

Property Modifiers Type Description
length number

Methods

Method Modifiers Description
get(index)

constructor(field)

Constructs a new instance of the AsNumberVector class

Signature

constructor(field: Vector);

Parameters

Parameter Type Description
field Vector

length property

Signature

get length(): number;

get method

Signature

get(index: number): number;

Parameters

Parameter Type Description
index number

Returns:

number