+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "toCSV"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
draft = true
+++
## toCSV() function
### toCSV() function
Signature
```typescript
export declare function toCSV(data: DataFrame[], config?: CSVConfig): string;
```
Import
```typescript
import { toCSV } from '@grafana/data';
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| data | DataFrame[]
| |
| config | CSVConfig
| |
Returns:
`string`