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)

3cac656970744e8eb3debf9a8d6b251b

Fork of Vega-Lite API Template

0 stars0🌍 Public
AAngel Lam
Last edited Mar 15, 2021
Created on Mar 15, 2021

This example displays a bar chart of the top 10 countries by “Genshin Impact: (2020)” values. The visualization loads data from a CSV file hosted on Gist, which originates from the UCI Machine Learning Repository’s Auto MPG Data Set. It uses the Vega-Lite API (`vl.markBar`, `vl.x().fieldN`, `vl.y().fieldQ`) to define the chart, and renders it with D3 (via `d3.csv`) for data loading and Vega for rendering. The chart resizes to the browser window and includes a tooltip for the quantitative field.

AI-generated description

A visualization constructed using the vega-lite-api.

The data shown here comes from the UCI Machine Learning Repository: Auto MPG Data Set, via Gist: Scatter Plot with Menus.