🌍 Public
Fork of 3rd Vega-Lite API Template
This bar chart displays the population of each country in 2015, sorted in descending order to highlight the most populous nations. The visualization is built using the Vega-Lite API within a D3.js framework, leveraging `vl.markBar()` and encoding country names and population values as x and y axes. Data is fetched asynchronously via D3’s `csv` loader from a GitHub-hosted CSV file. The chart renders at full window size with a custom dark theme, using Vega-Lite’s configuration to remove axis domains and adjust label styling for readability.
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
Comments
Sign in to join the discussion.