Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
MMuhammadAaqib137
Last edited Apr 4, 2021
Created on Apr 4, 2021

This visualization presents a scatter plot of auto-mpg data, showing the relationship between fuel efficiency and horsepower. Each point represents a car, with its origin encoded by color and weight by size. The tooltip displays the car's name and displacement. The example uses the Vega-Lite API to construct the visualization, which is then rendered by Vega with a custom configuration for improved readability. Data is loaded from a CSV file using d3.csv, and the plot fills the browser window with a responsive layout.

AI-generated description

A 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

Similar vizzes