Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

5d9015d30b49476d8adc215ae5eeaf47

Fork of Vega-Lite API Template

0 stars0🌍 Public
GGerasimos Katsagannis
Last edited May 22, 2022
Created on May 22, 2022

This example shows a bar chart of population by country, with bars colored by religion and tooltips displaying population values on hover. The visualization is built using the Vega-Lite API, which registers Vega and Vega-Lite libraries and uses a custom configuration to adjust axis and label styling for readability. Data is loaded asynchronously from a CSV file via `d3.csv`, and the chart is rendered as SVG with an autosized fit to the window. The code also integrates the Vega Tooltip handler for interactive hover details.

AI-generated description

A visualization constructed using the vega-lite-api.