Fork of Vega-Lite API Template
✓ Published0🌍 Public
This example uses the Vega-Lite API to create a scatter plot of automobile data, mapping weight to the x-axis, horsepower to the y-axis, and weight to color, with tooltips showing car names. It loads data from a CSV file of auto-mpg statistics via d3.csv, then renders the visualization with SVG. The code registers Vega and Vega-Lite via the `vl.register` method, applies a custom configuration for axis and label styling, and uses `vega-tooltip` to handle interactive hover details.
AI-generated descriptionA visualization constructed using the vega-lite-api.
MIT Licensed