HTML
✓ Published0🌍 Public
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.
MIT Licensed