Vega block example
This example shows a simple bar chart of categorical values labeled A through H, with the bar height encoding the amount for each category. It uses a tooltip to display the amount value when hovering over a bar, and the text labels fade out for the hovered bar to avoid overlap. The visualization is built with Vega, a declarative visualization grammar, and rendered using the Vega-Embed API. The code defines scales for the x and y axes, uses rectangular marks for the bars, and includes a text mark for labels. The data is embedded directly in the specification.
AI-generated descriptionVega Block example.
You can go to the blockbuilder and to fork this block and create your own visualizations. Check out the Vega website for more information, tutorials, and documentation. This example uses Vega-Embed. Happy hacking!
Also, check out the Vega-Lite version.
forked from <a href='http://bl.ocks.org/domoritz/'>domoritz</a>'s block: <a href='http://bl.ocks.org/domoritz/cd636b15fa0e187b51b73fc60b4d3014'>Vega block example</a>