Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
Wwzhang88
Last edited Nov 20, 2021
Created on Nov 20, 2021

This visualization shows the relationship between vehicle weight, horsepower, and fuel efficiency in a scatter plot, using a dataset of automobile specifications. The plot encodes weight on both the x-axis and color scale, while horsepower appears on the y-axis and miles per gallon determines point size. Built with the Vega-Lite API wrapped in D3.js, it renders as an SVG and includes interactive tooltips showing each car’s name. The code demonstrates programmatic chart construction through `vl.markCircle` and encoding methods, with a custom configuration adjusting axis styling and label fonts.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes