Skip to content
Vega-Lite templates

Biology — Chart: Genome Sizes

Genome sizes across organisms (log scale).

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Genome size in base pairs",
  "data": {"values": [
    {"organism": "E. coli", "bp": 4600000},
    {"organism": "Yeast", "bp": 12000000},
    {"organism": "Fruit fly", "bp": 140000000},
    {"organism": "Human", "bp": 3200000000},
    {"organism": "Wheat", "bp": 17000000000}
  ]},
  "mark": "bar",
  "encoding": {
    "x": {"field": "organism", "type": "nominal", "sort": "y", "title": "Organism"},
    "y": {"field": "bp", "type": "quantitative", "scale": {"type": "log"}, "title": "genome (bp, log)"},
    "color": {"field": "organism", "type": "nominal", "legend": null}
  }
}