Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 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.

MIT Licensed

Similar vizzes