Data Visualization
Generate hierarchical sunburst charts with polar coordinates and radial layout
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/sunburst-chart-generator' \
-H 'Content-Type: application/json' \
-d '{"chartData":"JSON hierarchical format:\n{\n "name": "Root",\n "children": [\n {\n "name": "Category A",\n "value": 100,\n "children": [\n {"name": "Item A1", "value": 60},\n {"name": "Item A2", "value": 40}\n ]\n },\n {\n "name": "Category B",\n "value": 80,\n "children": [\n {"name": "Item B1", "value": 50},\n {"name": "Item B2", "value": 30}\n ]\n }\n ]\n}\n\nEach node can have children for hierarchical structure or value for leaf nodes.","chartTitle":"Sunburst Chart","colorScheme":"default","maxDepth":5,"innerRadiusPercent":0,"labelSize":12,"showLabels":true,"showValues":false,"showPercentages":true,"chartWidth":"800","chartHeight":"600"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/sunburst-chart-generator| Name | Type | Required | Description |
|---|---|---|---|
| chartData | textarea | Yes | Hierarchical data for the sunburst chart in JSON format |
| chartTitle | text | No | Title that will be displayed above the chart |
| colorScheme | select | No | Color scheme for the hierarchical segments |
| maxDepth | range | No | Maximum number of hierarchy levels to display |
| innerRadiusPercent | range | No | Inner radius as percentage of outer radius (0-50%) |
| labelSize | range | No | Font size for segment labels |
| showLabels | checkbox | No | Display labels on segments |
| showValues | checkbox | No | Display values on segments |
| showPercentages | checkbox | No | Display percentage values on segments |
| chartWidth | text | No | Width of the chart in pixels |
| chartHeight | text | No | Height of the chart in pixels |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-sunburst-chart-generator": {
"name": "sunburst-chart-generator",
"description": "Generate hierarchical sunburst charts with polar coordinates and radial layout",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=sunburst-chart-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "sunburst-chart-generator",
"arguments": {
"chartData": "JSON hierarchical format:\n{\n "name": "Root",\n "children": [\n {\n "name": "Category A",\n "value": 100,\n "children": [\n {"name": "Item A1", "value": 60},\n {"name": "Item A2", "value": 40}\n ]\n },\n {\n "name": "Category B",\n "value": 80,\n "children": [\n {"name": "Item B1", "value": 50},\n {"name": "Item B2", "value": 30}\n ]\n }\n ]\n}\n\nEach node can have children for hierarchical structure or value for leaf nodes.",
"chartTitle": "Sunburst Chart",
"colorScheme": "default",
"maxDepth": 5,
"innerRadiusPercent": 0,
"labelSize": 12,
"showLabels": true,
"showValues": false,
"showPercentages": true,
"chartWidth": "800",
"chartHeight": "600"
}
}
}Questions or issues? Contact [email protected]