import Grid from '@grid-is/api';const client = new Grid({ apiKey: process.env['GRID_API_TOKEN'], // This is the default and can be omitted});async function main() { const response = await client.workbooks.renderChart('id', { chart: {} }); console.log(response); const content = await response.blob(); console.log(content);}main();
Copy
Ask AI
This response does not have an example.
Data operations
Render a chart using workbook data
POST
/
v1
/
workbooks
/
{id}
/
chart
JavaScript
Copy
Ask AI
import Grid from '@grid-is/api';const client = new Grid({ apiKey: process.env['GRID_API_TOKEN'], // This is the default and can be omitted});async function main() { const response = await client.workbooks.renderChart('id', { chart: {} }); console.log(response); const content = await response.blob(); console.log(content);}main();