Skip to main content
100%

Matrix Scatterplots in Vega-Lite API 1

✓ Published0🌍 Public
OOleJRask
Last edited Oct 11, 2021
Created on Oct 7, 2021

This example displays a small matrix of scatterplots comparing horsepower and displacement against fuel efficiency, with points colored by country of origin. Built with the Vega-Lite API, it uses the `repeat` operator to generate plots from a specification, encoding quantitative axes and a nominal color field. The visualization loads automobile data from the UCI Machine Learning Repository via a CSV fetched with d3’s `csv` function, and renders as SVG with custom axis styles and tooltips provided by 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.

MIT Licensed

Similar vizzes