forked from domoritz's block: Vega-Lite Bl.ocks example
Last active
August 30, 2019 18:53
-
-
Save domoritz/170e9be4ac83eb9533d4ec5fe2c20592 to your computer and use it in GitHub Desktop.
Vega-Lite listener
This file contains hidden or 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
license: bsd-3-clause |
This file contains hidden or 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/v3.json", | |
"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": "ordinal"}, | |
"y": {"field": "b", "type": "quantitative"} | |
} | |
} |
This file contains hidden or 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
�PNG | |