Matrix Scatterplots in Vega-Lite API 1
✓ Published0🌍 Public
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 descriptionA 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