Skip to content

Instantly share code, notes, and snippets.

@jonmmease
Created November 16, 2022 12:45
Show Gist options
  • Save jonmmease/e1a43899b2b6321178db1c053595bee2 to your computer and use it in GitHub Desktop.
Save jonmmease/e1a43899b2b6321178db1c053595bee2 to your computer and use it in GitHub Desktop.
Vega-Lite Histogram
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"url": "data/movies.json"},
"mark": "bar",
"encoding": {
"x": {"bin": true, "field": "IMDB Rating"},
"y": {"aggregate": "count"}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment