Fork of Vega-Lite API Template
✓ Published0🌍 Public
This example visualizes the relationship between miles per gallon and horsepower for automobiles from the UCI Auto MPG data set, with point color encoding the region of origin and point size encoding vehicle weight. A tooltip displays the car’s name and origin on hover. The visualization is built using the Vega-Lite API, with custom configuration for axis styling and font sizes. Data is loaded via `d3.csv`, and the chart adapts to the full browser window using dynamic height and width, rendered as an SVG through vega-tooltip for interactivity.
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.
MIT Licensed