Vega-Lite API Religion Bar Chart
This bar chart visualizes the population of five countries broken down by religion, using a stacked bar layout ordered by total population. The visualization is built programmatically through the Vega-Lite API, which registers Vega and Vega-Lite libraries and renders an SVG view with tooltips. Data is loaded via d3.csv from a Gist containing the UCI Auto MPG dataset, though the chart actually displays religion data from a separate CSV file. The chart uses Vega-Lite’s markBar encoding for x, y, color, and tooltip channels, with custom configuration for axis styling and font sizes.
AI-generated descriptionA visualization constructed using the vega-lite-api.
The data shown here comes from the UCI Machine Learning Repository: Auto MPG Data Set, via Gist: Scatter Plot with Menus.