APImcp
GuidesDeveloper Tools
ConsoleDocsMCP
Developer Tools ⏱ 1 min read

SVG Chart Generator API — Create Data Visualizations Programmatically

Generate beautiful SVG bar, line, and pie charts from JSON data. Dark-themed, customizable charts with legends and gridlines. Perfect for reports and dashboards. Free API.

01

What is SVG Chart Generation?

The SVG chart generator creates scalable vector graphics (SVG) charts from JSON data. It supports bar charts, line charts, and pie charts with dark theme, customizable colors, legends, gridlines, and axis labels. The output is pure SVG that can be embedded in web pages, emails, or downloaded as images.

02

How to Use It

Call GET /api/v1/chart-generator?data=[{"label":"A","value":10},{"label":"B","value":20}]&type=bar&title=Sales+Data. Returns SVG with content-type image/svg+xml.

03

Chart Types

Bar chart: vertical bars with customizable colors. Line chart: connected data points with area fill. Pie chart: proportional segments with percentage labels. Each type supports title, legend, gridlines, and custom dimensions.

Try it live Test this endpoint in the interactive console
Open Console →

Frequently Asked Questions

Can I customize the colors?
Yes. Pass a colors parameter as a JSON array of hex colors. Default colors are optimized for the dark theme.
What are the maximum dimensions?
Maximum width is 1200px, maximum height is 800px. Default is 600x400.