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)

50a722e4d8814b33bbc88034e0506c7f

Fork of Vega-Lite API Template

0 stars0🌍 Public
Mmail.lohade@gmail.com
Last edited Jul 9, 2024
Created on Jul 9, 2024

This example displays a bar chart of salary by country, with bars colored according to a categorical "Purchased" field. Built with the Vega-Lite API, it registers the vega, vega-lite, and vega-tooltip libraries, then fetches CSV data via `d3.csv` and renders the visualization into the full browser window. The chart uses bar mark sizing, field encodings for x, y, color, and tooltip, and applies a custom configuration for axis styles and typography.

AI-generated description

A visualization constructed using the vega-lite-api.