Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
JJean David
Last edited Apr 8, 2021
Created on Apr 8, 2021

This visualization displays the relationship between engine displacement and horsepower for various automobile models, with each point representing a car and its name revealed on hover. Built with the Vega-Lite API, it uses a scatter plot with semi-transparent, filled points and no stroke. The code registers Vega and Vega-Lite, loads data from a CSV file via `d3.csv`, and employs a `vl.markPoint` with quantitative X and Y encodings. The visualization automatically sizes to fit the browser window and incorporates a custom dark-themed configuration for axes and labels.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes