Chart Svg
chart_svgRender a chart to a standalone SVG (plus base64 data URI) for reports, dashboards, emails and agent answers: bar, horizontal bar, stacked bar, line, area, scatter, pie and donut. Multiple series with legend, "nice" axis ticks, compact number labels (1.2k, 3.4M), optional value labels, gaps for null values, rotated category labels when crowded, light / dark theme, custom colours and size. Accessible (title + aria-label). Price: $0.003 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/chart-svg
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": {
"series": "<series>"
},
"name": "chart_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | bar | |
| yMax | No | ||
| yMin | No | ||
| theme | No | light | |
| title | No | ||
| width | No | ||
| colors | No | ||
| height | No | ||
| labels | No | Category labels (x axis / slices) | |
| legend | No | Default: on when there are several series (or for pie / donut) | |
| series | Yes | [{name, values: [numbers | null], color?}]; scatter values are [x, y] pairs. A plain array of numbers is one series. | |
| xLabel | No | ||
| yLabel | No | ||
| valueLabels | No | Print values on bars / points / slices |