🌍 Public
Viewing a saved revision (read-only)
c9358fa67bfa43268e98a622162fcdb4
HTML
This example presents a scatter plot showing the relationship between automobile origin, model year, and vehicle name from the auto-mpg dataset. The visualization uses data fetched from a CSV file via `d3.csv()`, with points encoded by origin as both color and x-axis position, while the y-axis represents model year. The code leverages the vega-lite-api library to construct the specification, registering Vega and Vega-Lite, and includes tooltip functionality through the vega-tooltip `Handler`. The plot is rendered as an SVG with custom styling for readability.
AI-generated descriptionA visualization constructed using the vega-lite-api.