Viewing a saved revision (read-only)
623d33b8aba14ea8b9c6bd3f58c8f02a
Fork of Vega-Lite API Template
This example demonstrates a scatter plot of automobile data from the UCI Machine Learning Repository, visualizing horsepower against country of origin with points sized by a fixed constant. The code builds the visualization programmatically using the Vega-Lite API, registering Vega and Vega-Lite libraries with vega-tooltip for interactivity. Data is loaded asynchronously via `d3.csv`, and the chart is configured with custom styling for improved readability, rendering as a full-window SVG fit to the viewport.
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.