Skip to content

Instantly share code, notes, and snippets.

@jonmmease
Created November 7, 2022 17:17
Show Gist options
  • Save jonmmease/1857db38e6dcd7119b7689392b0a9ee2 to your computer and use it in GitHub Desktop.
Save jonmmease/1857db38e6dcd7119b7689392b0a9ee2 to your computer and use it in GitHub Desktop.
histogram_drilldown
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"url": "data/cars.json"},
"layer": [
{
"params": [
{"name": "brush", "select": {"type": "interval", "encodings": ["x"]}}
],
"mark": "bar",
"encoding": {
"x": {"field": "Acceleration", "bin": true},
"y": {"aggregate": "count"}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment