Vega-Lite API Template
✓ Published0🌍 Public
This bar chart displays population by country from a 2015 dataset, using Vega-Lite’s API to build the visualization with horizontal bars sorted by value. The code loads CSV data via `d3.csv`, configures axes and styling through a custom config object, and renders SVG using vega-lite and vega-tooltip for interactive hover details. The example demonstrates programmatic chart construction and React state management for handling asynchronous data.
AI-generated descriptionA program that loads in some data using D3 utilities, and uses React state to keep track of the data.
MIT Licensed