+++ # ----------------------------------------------------------------------- # 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 ```typescript export declare class CSVReader ``` Import ```typescript import { CSVReader } from '@grafana/data'; ``` Constructors | Constructor | Modifiers | Description | | --- | --- | --- | | [constructor(options)](#constructor-options) | | Constructs a new instance of the CSVReader class | Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [callback](#callback-property) | | CSVParseCallbacks | | | [config](#config-property) | | CSVConfig | | | [current](#current-property) | | MutableDataFrame | | | [data](#data-property) | | MutableDataFrame[] | | | [state](#state-property) | | ParseState | | Methods | Method | Modifiers | Description | | --- | --- | --- | | [readCSV(text)](#readcsv-method) | | | ### constructor(options) Constructs a new instance of the `CSVReader` class Signature ```typescript constructor(options?: CSVOptions); ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | options | CSVOptions | | ### callback property Signature ```typescript callback?: CSVParseCallbacks; ``` ### config property Signature ```typescript config: CSVConfig; ``` ### current property Signature ```typescript current: MutableDataFrame; ``` ### data property Signature ```typescript data: MutableDataFrame[]; ``` ### state property Signature ```typescript state: ParseState; ``` ### readCSV method Signature ```typescript readCSV(text: string): MutableDataFrame[]; ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | text | string | | Returns: `MutableDataFrame[]`