chartletv0.21.0chartlet.casoon.de

← All examples

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
  }
}
Where the budget goes
Where the budget goesTreemap of 13 items, together 1685; the rectangle of each has the area of its value. Largest: Schools (18.4%), Hospitals (16.6%), Pensions (13.1%). Groups: Society 56.4%, Infrastructure 16.0%, Security 16.9%, Environment 10.7%.SocietyInfrastructureSecurityEnvironmentSchools: 310 (18.4%)Schools310Hospitals: 280 (16.6%)Hospitals280Pensions: 220 (13.1%)Pensions220Defence: 150 (8.9%)Defence150Universities: 140 (8.3%)Universities140Roads: 120 (7.1%)Roads120Rail: 95 (5.6%)Rail95Police: 85 (5.0%)Police85Water: 75 (4.5%)Water75Waste: 60 (3.6%)Waste60Net: 55 (3.3%)Net55Fire: 50 (3.0%)Fire50Parks: 45 (2.7%)Parks45
Where the budget goesTreemap of 13 items, together 1685; the rectangle of each has the area of its value. Largest: Schools (18.4%), Hospitals (16.6%), Pensions (13.1%). Groups: Society 56.4%, Infrastructure 16.0%, Security 16.9%, Environment 10.7%.SocietyInfrastructureSecurityEnvironmentSchools: 310 (18.4%)Schools310Hospitals: 280 (16.6%)Hospitals280Pensions: 220 (13.1%)Pensions220Defence: 150 (8.9%)Defence150Universities: 140 (8.3%)Universities140Roads: 120 (7.1%)Roads120Rail: 95 (5.6%)Rail95Police: 85 (5.0%)Police85Water: 75 (4.5%)Water75Waste: 60 (3.6%)Waste60Net: 55 (3.3%)Net55Fire: 50 (3.0%)Fire50Parks: 45 (2.7%)

Source: Illustrative budget in millions

Show chart data
Data for Where the budget goes
ItemValueShareGroup
Schools31018.4%Society
Hospitals28016.6%Society
Pensions22013.1%Society
Defence1508.9%Security
Universities1408.3%Society
Roads1207.1%Infrastructure
Rail955.6%Infrastructure
Police855.0%Security
Water754.5%Environment
Waste603.6%Environment
Net553.3%Infrastructure
Fire503.0%Security
Parks452.7%Environment
  • Treemap
  • Show many parts of a whole