API Reference@grafana/dataCSVReader

CSVReader class

Signature

export declare class CSVReader 

Import

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

Constructors

ConstructorModifiersDescription
constructor(options)Constructs a new instance of the CSVReader class

Properties

PropertyModifiersTypeDescription
callbackCSVParseCallbacks
configCSVConfig
currentMutableDataFrame
dataMutableDataFrame[]
stateParseState

Methods

MethodModifiersDescription
readCSV(text)

constructor(options)

Constructs a new instance of the CSVReader class

Signature

constructor(options?: CSVOptions);

Parameters

ParameterTypeDescription
optionsCSVOptions

callback property

Signature

callback?: CSVParseCallbacks;

config property

Signature

config: CSVConfig;

current property

Signature

current: MutableDataFrame;

data property

Signature

data: MutableDataFrame[];

state property

Signature

state: ParseState;

readCSV method

Signature

readCSV(text: string): MutableDataFrame[];

Parameters

ParameterTypeDescription
textstring

Returns:

MutableDataFrame[]