Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published1🌍 Public
Ssmsk2980
Last edited May 1, 2021
Created on Apr 25, 2021

This visualization displays automobile data from a CSV file, plotting engine displacement against horsepower. Each point represents a vehicle, with color encoding the model year and size encoding vehicle weight. Tooltips reveal the car name when hovering. The chart uses the Vega-Lite API to construct the specification, with D3.js handling data loading via `d3.csv`. The visualization is rendered to SVG and fills the browser window, using a custom configuration to improve readability with larger fonts and adjusted axis styling. The code imports `vega`, `vega-lite`, and `vega-lite-api`, registering them with a tooltip handler to enable interactive data exploration.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes