Where the budget goes
A budget of thirteen items in four groups: the area of each rectangle follows its amount, the colors name the group, and the names and amounts stand inside. The description names the biggest items and the shares of the groups, the table lists every item with value, share and group. Illustrative amounts, with a phone variant. Build-time warnings: warning[value_labels_omitted] at /showValues: mobile variant: some value labels do not fit next to their bars or points and were left out; every value remains in the HTML data alternative
Where the budget goes
examples/budget-by-department.json{
"schemaVersion": 1,
"type": "treemap",
"title": "Where the budget goes",
"source": "Illustrative budget in millions",
"width": 760,
"height": 460,
"treemap": {
"items": [
{
"label": "Schools",
"value": 310,
"group": "Society"
},
{
"label": "Universities",
"value": 140,
"group": "Society"
},
{
"label": "Hospitals",
"value": 280,
"group": "Society"
},
{
"label": "Pensions",
"value": 220,
"group": "Society"
},
{
"label": "Roads",
"value": 120,
"group": "Infrastructure"
},
{
"label": "Rail",
"value": 95,
"group": "Infrastructure"
},
{
"label": "Net",
"value": 55,
"group": "Infrastructure"
},
{
"label": "Police",
"value": 85,
"group": "Security"
},
{
"label": "Defence",
"value": 150,
"group": "Security"
},
{
"label": "Fire",
"value": 50,
"group": "Security"
},
{
"label": "Parks",
"value": 45,
"group": "Environment"
},
{
"label": "Water",
"value": 75,
"group": "Environment"
},
{
"label": "Waste",
"value": 60,
"group": "Environment"
}
]
},
"mobile": {
"width": 380,
"height": 560
}
}Source: Illustrative budget in millions
Show chart data
| Item | Value | Share | Group |
|---|---|---|---|
| Schools | 310 | 18.4% | Society |
| Hospitals | 280 | 16.6% | Society |
| Pensions | 220 | 13.1% | Society |
| Defence | 150 | 8.9% | Security |
| Universities | 140 | 8.3% | Society |
| Roads | 120 | 7.1% | Infrastructure |
| Rail | 95 | 5.6% | Infrastructure |
| Police | 85 | 5.0% | Security |
| Water | 75 | 4.5% | Environment |
| Waste | 60 | 3.6% | Environment |
| Net | 55 | 3.3% | Infrastructure |
| Fire | 50 | 3.0% | Security |
| Parks | 45 | 2.7% | Environment |