Skip to main content
100%

Vega-Lite API Template

✓ Published1🌍 Public
Ssriramvsharma
Last edited Jul 27, 2020
Created on Jul 26, 2020

A bar chart visualizes historical figures from the Pantheon dataset, comparing their Heritage Price Index (hpi) across ten countries while color-coding by occupation. The visualization filters the raw CSV data to include only mathematicians, statisticians, computer scientists, engineers, inventors, biologists, and physicists from the United States, United Kingdom, Germany, Italy, China, India, Japan, South Korea, Canada, and France. Built with the Vega-Lite API, the chart uses `vl.markBar()` and encodes fields for country, hpi, occupation, and tooltip with figure names. The code loads data via D3's `csv`, applies custom configuration for axis styling, and renders through Vega, Vega-Lite, and vega-tooltip libraries.

AI-generated description

A visualization constructed using the vega-lite-api.

An exploration of the Pantheon dataset: Pantheon.world

MIT Licensed

Similar vizzes