+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "FormattedVector" keywords = ["grafana","documentation","sdk","@grafana/data"] type = "docs" +++ ## FormattedVector class Signature ```typescript export declare class FormattedVector implements Vector ``` Import ```typescript import { FormattedVector } from '@grafana/data'; ``` Constructors | Constructor | Modifiers | Description | | --- | --- | --- | | [constructor(source, formatter)](#constructor-sourceformatter) | | Constructs a new instance of the FormattedVector class | Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [length](#length-property) | | number | | Methods | Method | Modifiers | Description | | --- | --- | --- | | [get(index)](#get-method) | | | | [toArray()](#toarray-method) | | | | [toJSON()](#tojson-method) | | | ### constructor(source, formatter) Constructs a new instance of the `FormattedVector` class Signature ```typescript constructor(source: Vector, formatter: DisplayProcessor); ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | source | Vector<T> | | | formatter | DisplayProcessor | | ### length property Signature ```typescript get length(): number; ``` ### get method Signature ```typescript get(index: number): string; ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | index | number | | Returns: `string` ### toArray method Signature ```typescript toArray(): string[]; ``` Returns: `string[]` ### toJSON method Signature ```typescript toJSON(): string[]; ``` Returns: `string[]`