Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Data Visualization

Multi-level Pie Chart Generator

Create concentric multi-level pie charts with hierarchical relationships and interactive drill-down functionality

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/multi-level-pie-chart-generator' \
  -H 'Content-Type: application/json' \
  -d '{"chartTitle":"Enter chart title...","hierarchicalData":"JSON format example:\n{\n  "Technology": {\n    "Software": {\n      "Frontend": 150,\n      "Backend": 200,\n      "Database": 100\n    },\n    "Hardware": {\n      "Servers": 80,\n      "Network": 60\n    }\n  },\n  "Marketing": {\n    "Digital": 120,\n    "Traditional": 80\n  }\n}","innerRadius":"30","outerRadius":"180","colorScheme":"default","startAngle":"0","endAngle":"360","maxDepth":"3","centerLabel":"Total","strokeWidth":"2","showLabels":true,"showValues":false,"showPercentages":false,"enableDrillDown":true,"fontSize":"12","titleSize":"18","fontFamily":"Arial","chartWidth":"800","chartHeight":"600","backgroundColor":"#ffffff","animationEnabled":true,"animationDuration":"1000"}'

© 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/multi-level-pie-chart-generator

Parameters

NameTypeRequiredDescription
chartTitletextNoTitle that will be displayed above the chart
hierarchicalDatatextareaYesHierarchical data as nested JSON object with numeric values at leaf nodes
innerRadiusnumberNoInner radius of the innermost circle in pixels
outerRadiusnumberNoOuter radius of the outermost circle in pixels
colorSchemeselectNo—
startAnglenumberNoStarting angle in degrees (0-360)
endAnglenumberNoEnding angle in degrees (0-360)
maxDepthnumberNoMaximum number of levels to display
centerLabeltextNoText to display in the center of the chart
strokeWidthnumberNoWidth of borders between segments in pixels
showLabelscheckboxNoDisplay segment labels
showValuescheckboxNoDisplay segment values
showPercentagescheckboxNoDisplay percentage values
enableDrillDowncheckboxNoEnable interactive drill-down functionality
fontSizenumberNoFont size for labels and values
titleSizenumberNoFont size for the chart title
fontFamilytextNoFont family for text elements
chartWidthnumberNoWidth of the chart in pixels
chartHeightnumberNoHeight of the chart in pixels
backgroundColorcolorNoBackground color of the chart
animationEnabledcheckboxNoAnimate the chart when it loads
animationDurationnumberNoAnimation duration in milliseconds

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-multi-level-pie-chart-generator": {
      "name": "multi-level-pie-chart-generator",
      "description": "Create concentric multi-level pie charts with hierarchical relationships and interactive drill-down functionality",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=multi-level-pie-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": "multi-level-pie-chart-generator",
    "arguments": {
  "chartTitle": "Enter chart title...",
  "hierarchicalData": "JSON format example:\n{\n  &quot;Technology&quot;: {\n    &quot;Software&quot;: {\n      &quot;Frontend&quot;: 150,\n      &quot;Backend&quot;: 200,\n      &quot;Database&quot;: 100\n    },\n    &quot;Hardware&quot;: {\n      &quot;Servers&quot;: 80,\n      &quot;Network&quot;: 60\n    }\n  },\n  &quot;Marketing&quot;: {\n    &quot;Digital&quot;: 120,\n    &quot;Traditional&quot;: 80\n  }\n}",
  "innerRadius": "30",
  "outerRadius": "180",
  "colorScheme": "default",
  "startAngle": "0",
  "endAngle": "360",
  "maxDepth": "3",
  "centerLabel": "Total",
  "strokeWidth": "2",
  "showLabels": true,
  "showValues": false,
  "showPercentages": false,
  "enableDrillDown": true,
  "fontSize": "12",
  "titleSize": "18",
  "fontFamily": "Arial",
  "chartWidth": "800",
  "chartHeight": "600",
  "backgroundColor": "#ffffff",
  "animationEnabled": true,
  "animationDuration": "1000"
}
  }
}
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