Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
MMd Rizabul
Last edited Feb 10, 2024
Created on Feb 10, 2024

This example renders a bar chart of population by country for 2015, using data loaded from a CSV file via d3’s `csv` function. The visualization is built declaratively with the Vega-Lite API, which is registered with Vega and Vega-Lite libraries in `index.js`. The chart uses `markBar` with encoding for country on the x-axis and population on the y-axis, and a tooltip for country names. Appearance is customized through a config object, and the chart resizes to fit the browser window.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes