Export Chart Png
export_chart_pngExports a Datawrapper chart as a PNG image for inline display or download, with optional zoom for higher resolution. Use only when the user explicitly requests the chart image.
Instructions
⚠️ DATAWRAPPER MCP TOOL ⚠️ This is part of the Datawrapper MCP server integration.
Export a Datawrapper chart as PNG and display it inline. The chart must be created first using create_chart. Supports high-resolution output via the zoom parameter. IMPORTANT: Only use this tool when the user explicitly requests to see the chart image or export it as PNG. Do not automatically export charts after creation unless specifically asked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zoom | No | Scale multiplier for resolution, e.g., 2 = 2x resolution | |
| plain | No | If true, exports only the visualization without header/footer | |
| width | No | Width of the image in pixels (optional) | |
| height | No | Height of the image in pixels (optional) | |
| timeout | No | Seconds to wait for the export before giving up (optional). Defaults to 30s. Large or complex charts (e.g. high zoom values) may need a longer timeout to finish rendering server-side. | |
| chart_id | Yes | ID of the chart to export | |
| transparent | No | If true, exports with transparent background | |
| access_token | No | Optional Datawrapper API token. When provided, uses the caller's account. When omitted, falls back to the server's DATAWRAPPER_ACCESS_TOKEN env var. | |
| border_color | No | Color of the border, e.g., '#FFFFFF' (optional) | |
| border_width | No | Margin around visualization in pixels |