Vega-Lite API Template
✓ Published0🌍 Public
This example uses the Vega-Lite API to create a stacked bar chart of global religious demographics by country, sourced from a CSV file via D3’s `csv` loader. The visualization encodes country on the x-axis, population on the y-axis, and religion as color, with tooltips showing population values. The chart is rendered as SVG using Vega-Lite’s `markBar` and `encode` methods, with styling customized through a config object for axis and label appearance.
AI-generated descriptionA visualization constructed using the vega-lite-api.
MIT Licensed