Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template - Bar Chart

Public visualization

Viewing a saved revision (read-only)

cbac54f132644a839ec5bf2481c9c21f

Vega-Lite API Template - Bar Chart

0 stars0🌍 Public
Nnkohdatavis
Last edited Jul 25, 2020
Created on Jul 24, 2020

This bar chart displays the top five countries by population, with country names sorted by descending population on the x-axis and population totals on the y-axis. The visualization uses the Vega-Lite API to construct the bar mark and its encoding, with data fetched from a CSV file via `d3.csv`. The chart renders as SVG through the `vega-lite-api` library, with a custom tooltip handler and a configuration that removes axis domains and sets tick colors to light gray.

AI-generated description

A visualization constructed using the vega-lite-api.