Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Barchart Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

d4ff3303c1694aaeb924e76dac4e308e

Barchart Vega-Lite API Template

0 stars1🌍 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