Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Data Visualization

Sunburst Chart Generator

Generate hierarchical sunburst charts with polar coordinates and radial layout

html· HTML resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
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"}'

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools

API reference

Send a POST request with your inputs as JSON. File parameters require a separate upload first.

Endpoint

HTTP
POST https://api.elysiatools.com/en/api/tools/sunburst-chart-generator

Parameters

NameTypeRequiredDescription
chartDatatextareaYesHierarchical data for the sunburst chart in JSON format
chartTitletextNoTitle that will be displayed above the chart
colorSchemeselectNoColor scheme for the hierarchical segments
maxDepthrangeNoMaximum number of hierarchy levels to display
innerRadiusPercentrangeNoInner radius as percentage of outer radius (0-50%)
labelSizerangeNoFont size for segment labels
showLabelscheckboxNoDisplay labels on segments
showValuescheckboxNoDisplay values on segments
showPercentagescheckboxNoDisplay percentage values on segments
chartWidthtextNoWidth of the chart in pixels
chartHeighttextNoHeight of the chart in pixels

Response format

HTML result

JSON
{
  "result": "<div>Processed HTML content</div>",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

MCP integration

Add this tool to your Model Context Protocol server so AI agents can list and call it.

Server configuration

Add this block to your MCP client configuration:

mcp.json
{
  "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"
    }
  }
}

List available tools

After connecting to the SSE endpoint, list the exposed tools:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "sunburst-chart-generator",
    "arguments": {
  "chartData": "JSON hierarchical format:\n{\n  &quot;name&quot;: &quot;Root&quot;,\n  &quot;children&quot;: [\n    {\n      &quot;name&quot;: &quot;Category A&quot;,\n      &quot;value&quot;: 100,\n      &quot;children&quot;: [\n        {&quot;name&quot;: &quot;Item A1&quot;, &quot;value&quot;: 60},\n        {&quot;name&quot;: &quot;Item A2&quot;, &quot;value&quot;: 40}\n      ]\n    },\n    {\n      &quot;name&quot;: &quot;Category B&quot;,\n      &quot;value&quot;: 80,\n      &quot;children&quot;: [\n        {&quot;name&quot;: &quot;Item B1&quot;, &quot;value&quot;: 50},\n        {&quot;name&quot;: &quot;Item B2&quot;, &quot;value&quot;: 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"
}
  }
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).

Questions or issues? Contact [email protected]

Browse tools
Open tool