Skip to content

Instantly share code, notes, and snippets.

@domoritz
Created October 27, 2020 04:57
Show Gist options
  • Save domoritz/9ad52fd74e72cd4f347a5597088fa72c to your computer and use it in GitHub Desktop.
Save domoritz/9ad52fd74e72cd4f347a5597088fa72c to your computer and use it in GitHub Desktop.
Vega-Lite spec from Mon Oct 26 2020
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "A simple bar chart with embedded data.",
"data": {
"values": [
{"a": "A", "b": 28}, {"a": "B", "b": 55}, {"a": "C", "b": 43},
{"a": "D", "b": 91}, {"a": "E", "b": 81}, {"a": "F", "b": 53},
{"a": "G", "b": 19}, {"a": "H", "b": 87}, {"a": "I", "b": 52}
]
},
"mark": "bar",
"encoding": {
"x": {"field": "a", "type": "nominal", "axis": {"labelAngle": 0}},
"y": {"field": "b", "type": "quantitative"}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment