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/csvreader.md

2.2 KiB

+++

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

Do not edit this file. It is automatically generated by API Documenter.

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

title = "CSVReader" keywords = ["grafana","documentation","sdk","@grafana/data"] type = "docs" +++

CSVReader class

Signature

export declare class CSVReader 

Import

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

Constructors

Constructor Modifiers Description
constructor(options) Constructs a new instance of the CSVReader class

Properties

Property Modifiers Type Description
callback CSVParseCallbacks
config CSVConfig
current MutableDataFrame
data MutableDataFrame[]
state ParseState

Methods

Method Modifiers Description
readCSV(text)

constructor(options)

Constructs a new instance of the CSVReader class

Signature

constructor(options?: CSVOptions);

Parameters

Parameter Type Description
options CSVOptions

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

Parameter Type Description
text string

Returns:

MutableDataFrame[]