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)

0051cfd7b164404cae0a0860c1238ef8

Fork of Vega-Lite API Template

0 stars0🌍 Public
VVishal Kumar
Last edited Apr 19, 2021
Created on Apr 19, 2021

This example creates a bar chart showing the population of countries by religion, using a fork of the Vega-Lite API template. It renders data from a remote CSV file via `d3.csv` and visualizes it with `markBar`, encoding the x-axis by country name, y-axis by population, and color by religion. The chart uses `vega-lite-api` with a custom config that adds red axis ticks and larger label fonts, while the tooltip is handled by `vega-tooltip`’s `Handler`.

AI-generated description

A visualization constructed using the vega-lite-api.