Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega Lite API Template

Public visualization

Viewing a saved revision (read-only)

594d8b6068fb4681816edb9f9f13ff88

Vega Lite API Template

0 stars2🌍 Public
Bbellarej
Last edited Apr 5, 2021
Created on Apr 2, 2021
Forked from Hello HTML

This example shows a bar chart of population by country, colored by religion, using the Vega-Lite API within a React application. It renders stacked bars that sort countries by population and include tooltips for each data segment. The code loads CSV data from a GitHub gist via d3.csv, configures a dark theme with custom axis and label styles, and uses Vega-Lite’s declarative API to encode the chart. Vega and Vega-Lite are registered with a tooltip handler, and the final visualization is appended to the document body.

AI-generated description

A bare minimum HTML page.