Vega-Lite Bl.ocks example
This example demonstrates a simple bar chart of categorical values with quantitative measurements, using embedded data for nine lettered categories. The visualization is rendered through Vega-Lite, a high-level grammar for declarative visualization, which is configured via a JSON specification that defines the bar marks and encodings for the x-axis (ordinal) and y-axis (quantitative) fields. The code loads Vega, Vega-Lite, and Vega-Embed from a CDN, then invokes `vegaEmbed` to render the chart into the page, with tooltips enabled for the quantitative values. The chart is specified both as an external JSON file reference and an inline object, showing flexibility in how Vega-Lite specifications can be supplied.
AI-generated descriptionVega-Lite Bl.ocks example.
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!
forked from <a href='http://bl.ocks.org/domoritz/'>domoritz</a>'s block: <a href='http://bl.ocks.org/domoritz/455e1c7872c4b38a58b90df0c3d7b1b9'>Vega-Lite Bl.ocks example</a>