Fork of Vega-Lite API Template
✓ Published0🌍 Public
This example presents a horizontal bar chart visualizing population by country, with bars colored by religion. The visualization is built programmatically using the Vega-Lite API, which is registered with the Vega and Vega-Lite libraries. The `vl.markBar()` method encodes the country, population, and religion fields, while data is loaded from a CSV file using `d3.csv`. The chart is rendered as an SVG and configured with custom axis and label styles.
AI-generated descriptionA visualization constructed using the vega-lite-api.
MIT Licensed