Fork of Vega-Lite API Template
This visualization presents a scatterplot of automotive data, showing the relationship between engine displacement and horsepower, with points colored by production year and sized according to vehicle weight. Built using the Vega-Lite API, the chart defines visual encodings through a fluent API, mapping quantitative fields to x and y axes, an ordinal temporal field to color, and another quantitative field to point size. The data is loaded asynchronously from a CSV file using d3’s `csv` function, and custom configuration settings adjust axis tick colors, font sizes, and label styling for improved readability. The resulting SVG render is generated via Vega-Lite’s rendering pipeline, with tooltips enabled through the vega-tooltip handler.
AI-generated descriptionA visualization constructed using the vega-lite-api.