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.
ConstantVector class
Signature
export declare class ConstantVector<T = any> implements Vector<T>
Import
import { ConstantVector } from '@grafana/data';
Constructors
Properties
Methods
constructor(value, len)
Constructs a new instance of the ConstantVector
class
Signature
constructor(value: T, len: number);
Parameters
length property
Signature
get length(): number;
get method
Signature
get(index: number): T;
Parameters
Returns:
T
toArray method
Signature
toArray(): T[];
Returns:
T[]
toJSON method
Signature
toJSON(): T[];
Returns:
T[]