The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/docs/sources/packages_api/data/formattedvector.md

2.0 KiB

+++

-----------------------------------------------------------------------

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

export declare class FormattedVector<T = any> implements Vector<string> 

Import

import { FormattedVector } from '@grafana/data';

Constructors

Constructor Modifiers Description
constructor(source, formatter) Constructs a new instance of the FormattedVector class

Properties

Property Modifiers Type Description
length number

Methods

Method Modifiers Description
get(index)
toArray()
toJSON()

constructor(source, formatter)

Constructs a new instance of the FormattedVector class

Signature

constructor(source: Vector<T>, formatter: DisplayProcessor);

Parameters

Parameter Type Description
source Vector<T>
formatter DisplayProcessor

length property

Signature

get length(): number;

get method

Signature

get(index: number): string;

Parameters

Parameter Type Description
index number

Returns:

string

toArray method

Signature

toArray(): string[];

Returns:

string[]

toJSON method

Signature

toJSON(): string[];

Returns:

string[]