Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template 10

Public visualization

Viewing a saved revision (read-only)

7c43c564cec5452b8537f900d4d12eb8

Vega-Lite API Template 10

0 stars0🌍 Public
OOleJRask
Last edited Oct 12, 2021
Created on Oct 12, 2021

This visualization uses the Vega-Lite API with D3 to display a scatter plot of Auto MPG data from the UCI Machine Learning Repository, encoding horsepower and acceleration on the axes while coloring points by vehicle class. A second miniature chart, generated with repeated row and column facets, serves as a navigation overview. The code customizes axes and label styling through separate config objects and fetches data via D3’s CSV loader. Both charts are rendered as SVG using Vega-Lite’s API.

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.