Skip to main content
100%

Scatter Plot with Menus

✓ Published2🌍 Public
YYee Han
Last edited Dec 22, 2020
Created on Dec 22, 2020

This scatter plot visualizes the relationship between vehicle weight and horsepower, colored by origin and sized by weight, based on the auto-mpg dataset loaded via `d3.csv`. The visualization uses vega-lite-api to construct the specification, with vega-lite and vega handling rendering to SVG. Interactive tooltips display car names using vega-tooltip’s `Handler`, while the `config.js` customizes axis and label styling. The plot fills the window with a fit autosize, and the code registers the tooltip handler during initialization.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes