🌍 Public
Viewing a saved revision (read-only)
2cc643f381b347caa8a2737efcba5a6b
Vega-Lite API Template
This visualization displays the relationship between miles per gallon, horsepower, and model year for vehicles in the Auto MPG dataset from the UCI Machine Learning Repository. Using the Vega-Lite API, it renders a scatter plot where circle size encodes year and color encodes mpg. The code registers Vega-Lite with Vega, applies a custom configuration for axis styling, and loads the data via d3.csv. The rendering is fitted to the browser window with an SVG output.
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.