🌍 Public
Viewing a saved revision (read-only)
bda148dafa324c3c9165f12db9ddc6d2
Fork of Vega-Lite API Template
This example visualizes the top five religions by country using a stacked bar chart, with bars sorted by total population and colored by religious affiliation. The visualization is built with the Vega-Lite API, which programmatically constructs a bar mark with x, y, color, and tooltip encodings from CSV data loaded via d3.csv. The chart auto-sizes to the browser window and applies custom axis and label styling from a configuration object. Vega tooltips display temperature values on hover, though the underlying dataset contains population and religion fields.
AI-generated descriptionA visualization constructed using the vega-lite-api.