Render ECharts
render_echartRenders Apache ECharts option objects to SVG on the server, producing deterministic charts without a browser. Returns raw SVG source and echoed option.
Instructions
Renders an Apache ECharts visualization to SVG (server-side, no browser). Returns the raw SVG source plus the echoed option. Canvas/PNG raster rendering arrives in v1.1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | Built-in theme name (e.g. 'light', 'dark') or an inline theme JSON object. | light |
| width | No | Render width in pixels. | |
| height | No | Render height in pixels. | |
| option | Yes | Standard Apache ECharts option object (full passthrough to echarts v6). | |
| renderer | No | Output mode: 'svg' (vector, available now) or 'canvas'/'dual' (raster PNG, ships in v1.1). | svg |
| animation | No | Whether to emit an animated SVG. Disabled by default for deterministic output. | |
| background | No | Background color for the chart (e.g. '#ffffff' or 'transparent'). | transparent |
| devicePixelRatio | No | DPI multiplier (raster only). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | Raw SVG source of the rendered chart. | |
| theme | Yes | Theme name used ('inline' when a theme object was supplied). | |
| width | Yes | ||
| height | Yes | ||
| version | Yes | Pinned echarts runtime version. | |
| renderer | Yes | ||
| background | Yes |