Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite Bar Chart

Public visualization

Viewing a saved revision (read-only)

80bbd33cc5e146f08a0b5586da8534fd

Vega-Lite Bar Chart

0 stars1🌍 Public
KKevin McMorrow
Last edited Sep 18, 2021
Created on Sep 18, 2021

This bar chart displays the population of various countries, sorted from largest to smallest for easy comparison. It is built using the Vega-Lite API, with the visualization specification defined declaratively in `viz.js` and rendered through the `vega` and `vega-lite` JavaScript libraries. The chart includes interactive tooltips provided by the `vega-tooltip` handler and is configured for full-window display, drawing data loaded from a CSV file using d3’s `csv` function, which fetches population data for 2015.

AI-generated description

A 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.