+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "toCSV"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++

## toCSV() function

### toCSV() function

<b>Signature</b>

```typescript
export declare function toCSV(data: DataFrame[], config?: CSVConfig): string;
```
<b>Import</b>

```typescript
import { toCSV } from '@grafana/data';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  data | <code>DataFrame[]</code> |  |
|  config | <code>CSVConfig</code> |  |

<b>Returns:</b>

`string`

