Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Lesson 6

Public visualization

Lesson 6

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed