Render Publication-Grade Executive SVG Chart
render_chartCompiles structured business data into a crisp standalone SVG + base64 data URI across bar, stacked_bar, horizontal_bar, line, area, waterfall, funnel, and gantt chart types, returning a verified zero-overlap layoutReport. Pricing: $0.002 USD per rendered executive SVG chart (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chartType": "<chartType>"
},
"name": "render_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Executive headline chart title. | |
| width | No | Target SVG viewport width in pixels. | |
| height | No | Target SVG viewport height in pixels (auto-expands if dense rows/margins require it). | |
| series | No | 1 to 12 data series for Cartesian charts. | |
| palette | No | Accessible executive palette ('corporate', 'slate', 'emerald', or 'dark'). | corporate |
| footnote | No | Source attribution or footnote rendered along the bottom edge. | |
| showGrid | No | Render subtle dashed reference gridlines. | |
| subtitle | No | Context subtitle (timeframe, unit scope, or cohort). | |
| chartType | Yes | Enterprise chart type: 'bar', 'stacked_bar', 'horizontal_bar', 'line', 'area', 'waterfall', 'funnel', or 'gantt'. | |
| categories | No | Category or time-bucket labels for bar, stacked_bar, horizontal_bar, line, and area charts. | |
| ganttTasks | No | Timeline tasks and milestones for 'gantt' charts. | |
| showLegend | No | Override automatic legend visibility. | |
| unitSuffix | No | Optional unit suffix appended to formatted values (e.g. ' ms', 'x'). | |
| xAxisLabel | No | Optional horizontal axis title. | |
| yAxisLabel | No | Optional vertical axis title. | |
| includeZero | No | Force numeric scale to include the 0 baseline. | |
| valueFormat | No | Axis and data-label formatter ('compact' -> 12.4K, 'currency' -> $1.2M, 'percent' -> 45.3%, 'percent_ratio' -> 0.453 as 45.3%, 'integer', 'decimal', 'raw'). | compact |
| funnelStages | No | Ordered conversion stages for 'funnel' charts. | |
| referenceLine | No | Optional target/threshold reference line. | |
| currencySymbol | No | Currency symbol prefix used when valueFormat is 'currency'. | $ |
| showDataLabels | No | Render collision-checked value labels directly on bars/points. | |
| waterfallSteps | No | Ordered bridge steps for 'waterfall' charts. | |
| ganttMilestones | No | Optional vertical milestone guide lines for 'gantt' charts. |