Menu
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.
Enterprise
Open source
AsNumberVector class
This will force all values to be numbers
Signature
typescript
export declare class AsNumberVector extends FunctionalVector<number> Import
typescript
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
typescript
constructor(field: Vector);Parameters
| Parameter | Type | Description |
|---|---|---|
| field | Vector |
length property
Signature
typescript
get length(): number;get method
Signature
typescript
get(index: number): number;Parameters
| Parameter | Type | Description |
|---|---|---|
| index | number |
Returns:
number
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Scroll for more