Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
SSteven Pearce
Last edited Dec 15, 2021
Created on Dec 15, 2021

This example demonstrates the relationship between miles per gallon and horsepower for classic automobiles using a scatterplot with translucent points. The visualization loads data from a CSV file containing auto-mpg statistics and renders it through the Vega-Lite API, which is registered with Vega, Vega-Lite, and the vega-tooltip handler for interactive tooltips. The chart uses d3.csv to fetch and parse the data, while customizing axis styles and label formatting via the config object. The plot fills the entire viewport and includes tooltips displaying each vehicle’s name.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes