You can go to the blockbuilder and to fork this block and create your own visualizations. Check out the Vega-Lite website for more information, tutorials, and documentation. Happy hacking!
Last active
June 19, 2024 11:46
-
-
Save domoritz/455e1c7872c4b38a58b90df0c3d7b1b9 to your computer and use it in GitHub Desktop.
Vega-Lite Bl.ocks example
This file contains 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 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/v4.json", | |
"description": "A simple bar chart with embedded data.", | |
"width": 360, | |
"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"}, | |
"tooltip": {"field": "b", "type": "quantitative"} | |
} | |
} |
This file contains 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 | |