+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "Vector" keywords = ["grafana","documentation","sdk","@grafana/data"] type = "docs" +++ ## Vector interface Signature ```typescript export interface Vector ``` Import ```typescript import { Vector } from '@grafana/data'; ``` Properties | Property | Type | Description | | --- | --- | --- | | [length](#length-property) | number | | Methods | Method | Description | | --- | --- | | [get(index)](#get-method) | Access the value by index (Like an array) | | [toArray()](#toarray-method) | Get the resutls as an array. | ### length property Signature ```typescript length: number; ``` ### get method Access the value by index (Like an array) Signature ```typescript get(index: number): T; ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | index | number | | Returns: `T` ### toArray method Get the resutls as an array. Signature ```typescript toArray(): T[]; ``` Returns: `T[]`