Skip to content

Instantly share code, notes, and snippets.

@kristw
Last active September 10, 2020 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kristw/29e9e999a25c3606244931286e7eda0c to your computer and use it in GitHub Desktop.
Save kristw/29e9e999a25c3606244931286e7eda0c to your computer and use it in GitHub Desktop.
blog example: vega-lite
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "A simple bar chart with embedded data.",
"data": {
"values": [
{"country": "China", "population": 131744},
{"country": "India", "population": 104970},
{"country": "US", "population": 29034}
]
},
"mark": "bar",
"encoding": {
"x": {"field": "population", "type": "quantitative"},
"y": {"field": "country", "type": "nominal"}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment