Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template_Bars

Public visualization

Viewing a saved revision (read-only)

3905c4bea8654b2abf7e9e7a1e0b77c3

Vega-Lite API Template_Bars

0 stars1🌍 Public
OOleg Zhernovoy
Last edited Nov 26, 2022
Created on Nov 26, 2022

This bar chart displays the population of countries in 2015, with bars sorted in descending order and colored by country. It is built using the Vega-Lite API, which programmatically defines the visualization specification, while D3.js loads the CSV data from a Gist. The chart is rendered as SVG via Vega and Vega-Lite, with tooltips enabled through vega-tooltip and a custom config to adjust axis and label styling for readability.

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.