Fork of Vega-Lite API Template
This visualization displays the relationship between fuel efficiency (mpg), horsepower, weight, and origin for a set of automobiles. Each circle’s position, size, and color encode the quantitative and categorical attributes, with tooltips revealing vehicle names on hover. The chart is built using the Vega-Lite API, which registers Vega and Vega-Lite libraries, and retrieves its dataset from the UCI Machine Learning Repository’s Auto MPG dataset via a CSV loaded with d3.csv. The code customizes axis styling and uses a responsive, full-window layout for presentation.