🌍 Public
Viewing a saved revision (read-only)
013500082f5041b2b09f4b8dfd33ffbc
Vega-Lite API Template
This example presents a bar chart of population by country, with bars segmented by religion, using the Vega-Lite API. The visualization reads CSV data from a GitHub gist via `d3.csv` and encodes country, population, and religion through `vl.x()`, `vl.y()`, and `vl.color()`. It renders as an SVG in the browser, applying custom axis and label styling from a config object. The chart also includes tooltips for population values, powered by the Vega Tooltip handler.
AI-generated descriptionA visualization constructed using the vega-lite-api.