🌍 Public
Viewing a saved revision (read-only)
8c8ebf6c0fa94e958da53cd69f949c75
Fork of Vega-Lite API Template
This example demonstrates the relationship between miles per gallon and horsepower for classic automobiles using a scatterplot with translucent points. The visualization loads data from a CSV file containing auto-mpg statistics and renders it through the Vega-Lite API, which is registered with Vega, Vega-Lite, and the vega-tooltip handler for interactive tooltips. The chart uses d3.csv to fetch and parse the data, while customizing axis styles and label formatting via the config object. The plot fills the entire viewport and includes tooltips displaying each vehicle’s name.
AI-generated descriptionA visualization constructed using the vega-lite-api.