Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Episode 18 - Iterating Fast with Vega Lite API - Bar

Public visualization

Fork of Fork of Episode 18 - Iterating Fast with Vega Lite API - Bar

0 stars4🌍 Public
Zzjulijie0618
Last edited Jan 16, 2022
Created on Jan 16, 2022

This example displays a bar chart of population by country, sorted in descending order to highlight the most populous nations. The visualization is built programmatically using the Vega-Lite API, which constructs a specification that is then rendered by the Vega engine. The code registers Vega-Lite and Vega with the vega-lite-api library, uses D3’s CSV parser to load data from a Gist-hosted file, and applies custom configuration for axis styling and tooltips. Data originates from the UCI Auto MPG dataset, though the visualization itself plots country populations.

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.

Comments

Sign in to join the discussion.

MIT Licensed