Skip to content
Vega-Lite templates

Medicine — Chart: Causes of Death

Leading global causes of death (illustrative %).

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Leading causes of death",
  "data": {"values": [
    {"cause": "Heart disease", "share": 16},
    {"cause": "Stroke", "share": 11},
    {"cause": "Respiratory", "share": 8},
    {"cause": "Infections", "share": 7},
    {"cause": "Cancers", "share": 10},
    {"cause": "Other", "share": 48}
  ]},
  "mark": "bar",
  "encoding": {
    "y": {"field": "cause", "type": "nominal", "sort": "-x", "title": "Cause"},
    "x": {"field": "share", "type": "quantitative", "title": "% of deaths"},
    "color": {"field": "cause", "type": "nominal", "legend": null}
  }
}