Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"description": "Population over time.",
"data": {
"values": [
{"year": 1907,"population": 51815},
{"year": 2011,"population": 310956},
{"year": 2017,"population": 269022}
]
},
"mark": {
"type": "line",
"interpolate": "monotone"
},
"encoding": {
"x": {
"field": "year",
"type": "temporal",
"axis": {
"format": "%Y"
}
},
"y": {
"field": "population",
"type": "quantitative"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment