Skip to content

Instantly share code, notes, and snippets.

@putnik
Last active February 15, 2018 00:31
Show Gist options
  • Save putnik/f56f0da801f81485c1b4886447cc4dcd to your computer and use it in GitHub Desktop.
Save putnik/f56f0da801f81485c1b4886447cc4dcd to your computer and use it in GitHub Desktop.
{
"$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