Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
RRuibone
Last edited Oct 22, 2021
Created on Oct 22, 2021

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 description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes