Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
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