🌍 Public
Viewing a saved revision (read-only)
f69891a913a84de7abb13bfa6c16c15e
Fork of Vega-Lite API Template
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 descriptionA visualization constructed using the vega-lite-api.