Skip to main content
100%

Barchart Vega-Lite API Template

✓ Published1🌍 Public
Jjyotigpt790
Last edited Oct 26, 2020
Created on Oct 26, 2020

This bar chart visualizes population by country using data from the UCI Machine Learning Repository’s Auto MPG Data Set, loaded via `d3.csv`. The visualization is built with the Vega-Lite API, which registers Vega and Vega-Lite libraries, and renders as an SVG using `vega-lite-api`. It encodes country on the x-axis and population on the y-axis, with tooltips showing population values. The chart uses a custom config to enlarge font sizes and adjust axis styles, and it fits the viewport dimensions with an autosize setting.

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. //ep18

MIT Licensed

Similar vizzes