Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
PPaweł Oleniak
Last edited Nov 13, 2021
Created on Nov 13, 2021

This example demonstrates a scatter plot of automobile data from the UCI Auto MPG dataset, where each point represents a car, with horsepower on both axes, color encoding region of origin, and size encoding vehicle weight. Hovering reveals the car name via tooltips. The visualization is built using the Vega-Lite API and rendered with D3.js, incorporating custom axis styling and a dark color scheme from the configuration file. Data is loaded asynchronously via D3’s CSV parser, and the chart is displayed across the full window with automatic resizing.

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