Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

67295d7ffc2f48398b91736c55de2d79

Fork of Vega-Lite API Template

0 stars0🌍 Public
Mmarouan-ben
Last edited Sep 17, 2023
Created on Sep 17, 2023

This example visualizes automobile fuel economy data from the UCI Auto MPG dataset, plotting cylinders against horsepower with circles colored by origin and sized by weight. It uses the Vega-Lite API to declaratively define the scatter plot, with tooltips showing car names. The visualization leverages d3.csv to load the data, Vega-Lite’s config for axis and label styling, and renders via Vega’s SVG output. The chart fills the browser window with an interactive tooltip handler from vega-tooltip.

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.