Data Visualization
分组柱状图生成器
生成分组柱状图,用于并排比较多个类别,非常适合多类别对比和比较分析
html· HTML 结果打开工具
快速开始
用三种语言从你的代码中调用此工具。
cURL
curl -X POST 'https://api.elysiatools.com/zh/api/tools/grouped-bar-chart' \
-H 'Content-Type: application/json' \
-d '{"chartData":"Multi-series JSON format:\n{"categories": ["Q1", "Q2", "Q3"],\n "series": [\n {"name": "Product A", "data": [100, 150, 120]},\n {"name": "Product B", "data": [80, 110, 140]},\n {"name": "Product C", "data": [60, 90, 110]}\n ]\n}\n\nSingle series:\n{"categories": ["A", "B", "C"],\n "series": [\n {"name": "Values", "data": [100, 150, 120]}\n ]}","chartTitle":"输入图表标题...","chartType":"vertical","barColors":"#3b82f6,#10b981,#f59e0b","backgroundColor":"#ffffff","gridColor":"#e0e0e0","barWidth":"30","groupSpacing":"30","chartHeight":"400","maxValue":0,"minValue":0,"xAxisLabel":"Categories","yAxisLabel":"Value","showGrid":true,"showValues":true,"valuePosition":"top","showLegend":true}'