Vega-lite Bar Chart with Tooltip
This example demonstrates a simple bar chart showing categorical values (A through I) against their corresponding numeric quantities, encoded as bar heights. The visualization is built with Vega-Lite, using an embedded dataset of nine pairs, and rendered as SVG via vega-embed. Tooltip interactivity is added through the vega-tooltip library, which binds to the vega view and displays the exact field values on hover. The code defines the chart declaratively in a JSON specification, setting the x-axis to ordinal categories and the y-axis to a quantitative scale, with the vegaEmbed function handling the rendering.
AI-generated descriptionA simple Vega-lite bar chart example for vega-tooltip
forked from <a href='http://bl.ocks.org/sirahd/'>sirahd</a>'s block: <a href='http://bl.ocks.org/sirahd/9520d2f95f3f13ec3756da1a4b713501'>Vega-lite Bar Chart with Tooltip</a>