Skip to main content
100%

Vega Vehicle Scatter Plot

✓ Published1🌍 Public
AAmeer Nuri
Last edited Oct 15, 2021
Created on Oct 13, 2021
Forked from React Starter

This example renders a scatter plot of vehicle data from the auto-mpg CSV dataset, showing the relationship between weight, horsepower, and miles per gallon, with origin as a color-coded category. Built with React and the Vega-Lite API, it uses `vl.markCircle` to encode fields for x, y, size, color, and tooltip, while the `config.js` file customizes axis styles and label appearance. The visualization fetches data asynchronously via `d3.csv`, registers the Vega tooltip handler for interactive tooltips, and dynamically sizes the plot to fit the window using `autosize`.

AI-generated description

Vega Lite API

MIT Licensed

Similar vizzes