Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template - barchart

Public visualization

Viewing a saved revision (read-only)

91727fb28d67464cbf91eb8303e3eabf

Vega-Lite API Template - barchart

0 stars1🌍 Public
Llaplantalaplanta
Last edited Jan 20, 2022
Created on Jan 20, 2022

This example demonstrates a bar chart visualization of population by country for 2015, using a dataset loaded from a GitHub gist via d3.csv. The chart displays countries on the x-axis sorted in descending order of population, with population values mapped to the y-axis. It is constructed programmatically using the Vega-Lite API (vl) to define the bar mark and encodings, then rendered through Vega and Vega-Lite engines. The code also applies a custom configuration for axis styling and uses Vega-Tooltip for interactive hover details.

AI-generated description

A visualization constructed using the vega-lite-api.