🌍 Public
Viewing a saved revision (read-only)
1dd74118f1cd4ad5a4a823e33410c16d
Fork of Vega-Lite API Template
This example visualizes automobile characteristics from the auto-mpg CSV dataset using the Vega-Lite API. It plots weight against horsepower as a scatter plot, with circle size encoding miles per gallon and color encoding country of origin, plus tooltips showing vehicle names. The code registers Vega-Lite with Vega, uses d3.csv for data loading, and applies a custom configuration for axis styling and typography. The visualization renders as SVG, sized to fit the browser window, with a semi-transparent fill and opacity adjustments for readability.
AI-generated descriptionA visualization constructed using the vega-lite-api.