Fork of Vega-Lite API Template
✓ Published0🌍 Public
This example visualizes the relationship between fuel efficiency (miles per gallon) and horsepower for vehicles from the Auto MPG dataset, encoding weight as point size, origin as color, and car model name as a tooltip. It shows a scatter plot with a custom dark theme and enlarged axis labels. The visualization is built declaratively using the Vega-Lite API, which is registered with Vega and Vega-Lite libraries, while the data is fetched and parsed using D3’s `csv` function.
AI-generated descriptionA visualization constructed using the vega-lite-api.
The data shown here comes from the UCI Machine Learning Repository: Auto MPG Data Set, via Gist: Scatter Plot with Menus.
MIT Licensed