Data Visualization
Pie Chart Generator
Generate customizable pie charts from data with various styling options
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/pie-chart-generator' \
-H 'Content-Type: application/json' \
-d '{"chartData":"JSON: [{"label": "Jan", "value": 100},\n{"label": "Feb", "value": 150},\n{"label": "Mar", "value": 120}]\n\nor text:\nJan:100\nFeb:150\nMar:120","chartTitle":"Enter chart title...","colorScheme":"default","backgroundColor":"#ffffff","chartSize":"400","innerRadius":"0","startAngle":"0","showPercentage":true,"showLabels":true,"showLegend":true}'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/pie-chart-generatorParameters
| Name | Type | Required | Description |
|---|---|---|---|
| chartData | textarea | Yes | Data for the chart. Can be JSON array or simple label:value pairs |
| chartTitle | text | No | Title that will be displayed above the chart |
| colorScheme | select | No | — |
| backgroundColor | color | No | Background color for the chart container |
| chartSize | number | No |