Iterating Fast with Vega-Lite API
This interactive bar chart visualizes the top 5 religious groups by population across countries, using data from the UCI Machine Learning Repository via a Gist. Built with the Vega-Lite API, the visualization encodes country on the x-axis, population on the y-axis, and religion as color, with tooltips showing religious affiliation. The code registers Vega and Vega-Lite libraries, configures a dark-themed custom axis style, loads CSV data using d3.csv, and renders the chart with an auto-fit, full-viewport layout.