chartletv0.21.0chartlet.casoon.de

← All examples

The budget by sector and department

The same kind of budget, one level deeper: four sectors drawn as frames, and the departments inside them as rectangles by their amount. Every sector keeps one color, the legend names the sectors, and the table lists every department with its path. Illustrative amounts, with a phone variant.

The budget by sector and department

examples/budget-by-sector.json
{
  "schemaVersion": 1,
  "type": "treemap",
  "title": "The budget by sector and department",
  "source": "Illustrative budget in millions",
  "width": 760,
  "height": 480,
  "treemap": {
    "items": [
      {
        "label": "Society",
        "children": [
          {
            "label": "Schools",
            "value": 310
          },
          {
            "label": "Hospitals",
            "value": 280
          },
          {
            "label": "Pensions",
            "value": 220
          },
          {
            "label": "Universities",
            "value": 140
          }
        ]
      },
      {
        "label": "Security",
        "children": [
          {
            "label": "Defence",
            "value": 150
          },
          {
            "label": "Police",
            "value": 85
          },
          {
            "label": "Fire",
            "value": 50
          }
        ]
      },
      {
        "label": "Infrastructure",
        "children": [
          {
            "label": "Roads",
            "value": 120
          },
          {
            "label": "Rail",
            "value": 95
          },
          {
            "label": "Net",
            "value": 55
          }
        ]
      },
      {
        "label": "Nature",
        "children": [
          {
            "label": "Water",
            "value": 75
          },
          {
            "label": "Waste",
            "value": 60
          },
          {
            "label": "Parks",
            "value": 45
          }
        ]
      }
    ]
  },
  "mobile": {
    "width": 380,
    "height": 640
  }
}
The budget by sector and department
The budget by sector and departmentTreemap of 13 items, together 1685; the rectangle of each has the area of its value. Largest: Society › Schools (18.4%), Society › Hospitals (16.6%), Society › Pensions (13.1%). Groups: Society 56.4%, Security 16.9%, Infrastructure 16.0%, Nature 10.7%.SocietySecurityInfrastructureNatureSociety: 950 (56.4%)SocietySociety › Schools: 310 (18.4%)Schools310Society › Hospitals: 280 (16.6%)Hospitals280Society › Pensions: 220 (13.1%)Pensions220Society › Universities: 140 (8.3%)Universities140Security: 285 (16.9%)SecuritySecurity › Defence: 150 (8.9%)Defence150Security › Police: 85 (5.0%)Police85Security › Fire: 50 (3.0%)Fire50Infrastructure: 270 (16.0%)InfrastructureInfrastructure › Roads: 120 (7.1%)Roads120Infrastructure › Rail: 95 (5.6%)Rail95Infrastructure › Net: 55 (3.3%)Net55Nature: 180 (10.7%)NatureNature › Water: 75 (4.5%)Water75Nature › Waste: 60 (3.6%)Waste60Nature › Parks: 45 (2.7%)Parks45
The budget by sector and departmentTreemap of 13 items, together 1685; the rectangle of each has the area of its value. Largest: Society › Schools (18.4%), Society › Hospitals (16.6%), Society › Pensions (13.1%). Groups: Society 56.4%, Security 16.9%, Infrastructure 16.0%, Nature 10.7%.SocietySecurityInfrastructureNatureSociety: 950 (56.4%)SocietySociety › Schools: 310 (18.4%)Schools310Society › Hospitals: 280 (16.6%)Hospitals280Society › Pensions: 220 (13.1%)Pensions220Society › Universities: 140 (8.3%)Universities140Security: 285 (16.9%)SecuritySecurity › Defence: 150 (8.9%)Defence150Security › Police: 85 (5.0%)Police85Security › Fire: 50 (3.0%)Fire50Infrastructure: 270 (16.0%)InfrastructureInfrastructure › Roads: 120 (7.1%)Roads120Infrastructure › Rail: 95 (5.6%)Rail95Infrastructure › Net: 55 (3.3%)Net55Nature: 180 (10.7%)NatureNature › Water: 75 (4.5%)Water75Nature › Waste: 60 (3.6%)Waste60Nature › Parks: 45 (2.7%)Parks45

Source: Illustrative budget in millions

Show chart data
Data for The budget by sector and department
ItemValueShareGroup
Society95056.4%Society
Society › Schools31018.4%Society
Society › Hospitals28016.6%Society
Society › Pensions22013.1%Society
Society › Universities1408.3%Society
Security28516.9%Security
Security › Defence1508.9%Security
Security › Police855.0%Security
Security › Fire503.0%Security
Infrastructure27016.0%Infrastructure
Infrastructure › Roads1207.1%Infrastructure
Infrastructure › Rail955.6%Infrastructure
Infrastructure › Net553.3%Infrastructure
Nature18010.7%Nature
Nature › Water754.5%Nature
Nature › Waste603.6%Nature
Nature › Parks452.7%Nature
  • Treemap (nested)
  • Show parts inside parts