Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
MMarco Malvicini
Last edited Apr 17, 2021
Created on Apr 17, 2021

This example visualizes the relationship between vehicle weight, horsepower, and miles per gallon from the auto-mpg dataset. It renders a scatter plot using Vega-Lite’s API, with circle size mapped to mpg, color to weight, and tooltips showing car names. The code builds the chart via `vl.markCircle` and `vl.encode`, then renders it with `vega`, `vega-lite`, and `vega-tooltip`, using `d3.csv` to load the data and custom config to adjust axis styling.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes