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)

4da6573ce83c4e5f9df7482579287629

Fork of Vega-Lite API Template

0 stars0🌍 Public
AAnibal Gatica
Last edited Sep 18, 2022
Created on Sep 17, 2022

This example shows a bar chart of population by country for 2015, with bars sorted in ascending order and tooltips displaying population values on hover. It is built using the Vega-Lite API, which registers Vega and Vega-Lite libraries to create the visualization programmatically. The code loads CSV data via d3.csv and renders the chart as an SVG, applying a custom configuration for axis styling and label fonts. The visualization is designed to fit the full browser window using an autosize fit option.

AI-generated description

A visualization constructed using the vega-lite-api.