Fork of Vega-Lite API Template
✓ Published0🌍 Public
This example visualizes religious affiliation by country as a heatmap, with one axis for countries, the other for religions, and cell color intensity encoding the population share. The visualization is built with Vega-Lite’s JavaScript API, which registers Vega and Vega-Lite libraries to render an SVG bar mark. It imports data from a CSV file of 2015 global populations, fetched via d3.csv. The chart resizes to fit the window and includes a tooltip showing the population value for each cell.
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.
MIT Licensed