Categories

Pie Chart Generator

Generate customizable pie charts from data with various styling options

Data for the chart. Can be JSON array or simple label:value pairs

Title that will be displayed above the chart

Background color for the chart container

Size of the chart in pixels (width and height)

Inner radius for donut chart (0 for pie chart)

Starting angle in degrees (0-360)

Display percentage values on pie slices

Display labels on pie slices

Display a legend with all items

Key Facts

Category
Data Visualization
Input Types
textarea, text, select, color, number, checkbox
Output Type
html
Sample Coverage
4
API Ready
Yes

Overview

The Pie Chart Generator is a versatile tool that transforms raw data into professional, customizable pie and donut charts. Whether you need to visualize market shares, budget distributions, or survey results, this utility provides an intuitive way to create clear, high-quality graphics with flexible styling options.

When to Use

  • When you need to visualize the proportional distribution of a dataset quickly.
  • When you want to create a donut chart by adjusting the inner radius for a modern look.
  • When you need to present data in reports or presentations with specific color schemes and labels.

How It Works

  • Input your data as a JSON array or simple label-value pairs.
  • Customize the appearance by selecting a color scheme, adjusting the chart size, or setting an inner radius for a donut effect.
  • Toggle display options like percentages, labels, and legends to suit your presentation needs.
  • Generate your chart instantly and preview the final visualization.

Use Cases

Visualizing monthly budget allocations for personal or business finance reports.
Displaying survey response percentages to highlight key findings in a presentation.
Creating clear, branded graphics for social media posts or blog content.

Examples

1. Monthly Expense Breakdown

Freelancer
Background
A freelancer needs to show clients how their project budget is distributed across different service categories.
Problem
The raw data is in a simple list and needs to be converted into a professional visual for a monthly report.
How to Use
Input the expense categories and amounts, select the 'Pastel' color scheme, and enable the legend.
Example Config
Data: Rent:1200, Software:200, Marketing:300; Color Scheme: Pastel; Show Legend: true
Outcome
A clean, pastel-colored pie chart that clearly illustrates the budget distribution.

2. Survey Result Visualization

Marketing Analyst
Background
An analyst is summarizing customer feedback regarding preferred product features.
Problem
Need to display the percentage of users who prefer specific features in a donut chart format.
How to Use
Input the survey counts, set the 'Inner Radius' to 100, and enable 'Show Percentage on Slices'.
Example Config
Data: Feature A:45, Feature B:30, Feature C:25; Inner Radius: 100; Show Percentage: true
Outcome
A modern donut chart showing the exact percentage split for each feature preference.

Try with Samples

json

Related Hubs

FAQ

What data formats are supported?

You can input data as a JSON array (e.g., [{"label": "A", "value": 10}]) or as simple text pairs (e.g., A:10).

Can I create a donut chart?

Yes, simply increase the 'Inner Radius' value from 0 to create a donut chart.

Are the charts customizable?

Yes, you can adjust the color scheme, background color, chart size, and toggle the visibility of labels, percentages, and legends.

Is there a limit to the number of data points?

While there is no strict limit, we recommend keeping the number of slices reasonable to ensure the chart remains readable.

Can I change the starting angle of the slices?

Yes, you can adjust the 'Start Angle' setting from 0 to 360 degrees to rotate the chart as needed.

API Documentation

Request Endpoint

POST /en/api/tools/pie-chart-generator

Request Parameters

Parameter 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 Size of the chart in pixels (width and height)
innerRadius number No Inner radius for donut chart (0 for pie chart)
startAngle number No Starting angle in degrees (0-360)
showPercentage checkbox No Display percentage values on pie slices
showLabels checkbox No Display labels on pie slices
showLegend checkbox No Display a legend with all items

Response Format

{
  "result": "
Processed HTML content
", "error": "Error message (optional)", "message": "Notification message (optional)", "metadata": { "key": "value" } }
HTML: HTML

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-pie-chart-generator": {
      "name": "pie-chart-generator",
      "description": "Generate customizable pie charts from data with various styling options",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=pie-chart-generator",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]