CSVReader class

Signature

  1. export declare class CSVReader

Import

  1. 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

  1. constructor(options?: CSVOptions);

Parameters

ParameterTypeDescription
optionsCSVOptions

callback property

Signature

  1. callback?: CSVParseCallbacks;

config property

Signature

  1. config: CSVConfig;

current property

Signature

  1. current: MutableDataFrame;

data property

Signature

  1. data: MutableDataFrame[];

state property

Signature

  1. state: ParseState;

readCSV method

Signature

  1. readCSV(text: string): MutableDataFrame[];

Parameters

ParameterTypeDescription
textstring

Returns:

MutableDataFrame[]