Skip to main content
100%

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

✓ Published0🌍 Public
Zzjulijie0618
Last edited Jan 23, 2022
Created on Jan 23, 2022

This visualization displays a bar chart of population by country, sourced from the UCI Auto MPG dataset via a Gist. It is built using the Vega-Lite API alongside d3.v5, with Vega-Lite 4 and Vega 5. The chart sorts bars descending by population and includes tooltips. The code programs the visualization declaratively via `vl.markBar()` and encodes fields with `vl.x()` and `vl.y()`, applying custom axis and label styling from a config object.

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.

MIT Licensed

Similar vizzes