Guide

Multi-series bar charts

Compare several series side by side with named categories.

1. Shape the data

Each row is ["label", series1, series2, ...]. Name the series with options.categories:

curl -o sales.png \
  "https://yakcharts.com/api/chart.png?apiKey=YOUR_API_KEY&type=bar&title=Sales&data=[[\"Q1\",10,8],[\"Q2\",15,12]]&options={\"categories\":[\"Plan\",\"Actual\"],\"theme\":\"cerulean\"}"

2. Stacked vs grouped

Use type=stacked to stack the series, or type=percentage_bar for 100%-stacked. type=bar groups them.