Last active
January 20, 2021 23:24
-
-
Save mcnuttandrew/da0817628ce8b8ad960f71a2b59cbced to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v4.json", | |
"description": "A bar chart showing the US population distribution of age groups in 2000.", | |
"height": {"step": 17}, | |
"data": { "url": "data/population.json"}, | |
"transform": [{"filter": "datum.year == 2000"}], | |
"mark": "bar", | |
"encoding": { | |
"y": {"field": "age"}, | |
"x": { | |
"aggregate": "sum", "field": "people", | |
"title": "population" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment