🌍 Public
Viewing a saved revision (read-only)
9ae8e1ca871d463782385cf5f0b31a2a
Scatter Plot with Small Points
This example displays a scatter plot of automobile data from the auto-mpg dataset, plotting engine displacement against horsepower. Each point represents a vehicle, with tooltips showing the car name on hover. The visualization is built using the vega-lite-api library, which wraps Vega-Lite specifications into JavaScript methods. The code registers Vega and Vega-Lite, loads the CSV data via d3.csv, and renders the chart as SVG with a custom configuration for styled axes and labels.
AI-generated descriptionA visualization constructed using the vega-lite-api.