Skip to content
Vega-Lite templates

Sports Science — Chart: Common Injuries

Relative frequency of sports injuries (illustrative).

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Sports injuries by type",
  "data": {"values": [
    {"injury": "Sprains", "pct": 30},
    {"injury": "Strains", "pct": 25},
    {"injury": "Fractures", "pct": 12},
    {"injury": "Tendinopathy", "pct": 18},
    {"injury": "Concussion", "pct": 15}
  ]},
  "mark": "bar",
  "encoding": {
    "x": {"field": "injury", "type": "nominal", "sort": "-y", "title": "Injury"},
    "y": {"field": "pct", "type": "quantitative", "title": "% of injuries"},
    "color": {"field": "injury", "type": "nominal", "legend": null}
  }
}