Skip to main content
100%

Lesson 6

✓ Published0🌍 Public
MMarcin Stepniak
Last edited May 10, 2021
Created on May 7, 2021

This visualization displays the relationship between vehicle weight, horsepower, and fuel efficiency using the auto-mpg dataset. A scatter plot maps weight on the x-axis and horsepower on the y-axis, while both the size and color of the circular marks encode miles per gallon, with tooltips revealing car names. It is built with the vega-lite-api, which wraps Vega-Lite and Vega, and loads data via d3.csv. The chart fills the browser window with a fit autosize and uses custom axis and label styling from a config object.

AI-generated description

Lesson 6: A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes