chartlet 0.2.0

Compile structured data into deterministic, accessible static charts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  "schemaVersion": 1,
  "type": "bar",
  "orientation": "horizontal",
  "patterns": true,
  "title": "Share of world population and of CO₂ emissions",
  "source": "Sample data, rounded",
  "valueAxis": { "format": "percent" },
  "categories": ["China", "United States", "European Union", "India", "Africa"],
  "series": [
    { "name": "Population", "values": [0.18, 0.04, 0.06, 0.18, 0.18] },
    { "name": "CO₂ emissions", "values": [0.31, 0.13, 0.07, 0.08, 0.04] }
  ]
}