Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
KKwame Porter Robinson
Last edited Dec 15, 2022
Created on Dec 15, 2022

This visualization uses a scatter plot to show the relationship between automobile horsepower, weight, and model year, with points colored by country of origin and sized by weight. The data comes from the UCI Machine Learning Repository’s Auto MPG dataset. It is built with the Vega-Lite API, which registers Vega and Vega-Lite libraries alongside d3.v5 for CSV loading, and uses the `vl.markCircle` and `vl.encode` methods to define the marks and channels. A custom config adjusts axis tick and label styling, with tooltips provided by the Vega Tooltip handler.

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