Viewing a saved revision (read-only)
a71b9896638b4e118b7019b25317c1d7
Fork of Vega-Lite API Template b
This scatter plot visualizes the relationship between fuel efficiency (mpg) and horsepower for various car models, with points colored by origin and sized by weight, using data from the UCI Auto MPG dataset. The visualization is built with the Vega-Lite API, which generates a Vega-Lite specification that is subsequently rendered by Vega. It uses D3.js to load the CSV data from a Gist, customizes axis and label styling through a configuration object, and includes interactive tooltips displaying the car name via the Vega-Tooltip handler.
AI-generated descriptionA 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.