Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API

Public visualization

Viewing a saved revision (read-only)

4558157f0fba4af69fb83c1dd9bdfab5

Fork of Vega-Lite API

0 stars0🌍 Public
LLaura Jackson
Last edited Dec 19, 2021
Created on Dec 19, 2021

This example uses the Vega-Lite API to render a bar chart of population by country, with data loaded from a CSV file. The visualization encodes country names on the x-axis and population values on the y-axis, sorting bars by population size. The page imports Vega, Vega-Lite, and Vega-Lite API libraries, registers them together with Vega Tooltip for interactive hover details. Custom axis styling and font sizes from a config object improve readability, while the chart resizes to fit the window using the view’s width and height properties.

AI-generated description

use of vega lite - temperature