Skip to main content
100%

Cars Vega-Lite

✓ Published0🌍 Public
AAnthony Ynami
Last edited Feb 18, 2021
Created on Feb 18, 2021

This example displays a 2D scatter plot of car data, mapping engine displacement on the x-axis and horsepower on the y-axis, with each point labeled by car name via tooltips. The visualization is built using the Vega-Lite API in JavaScript, with `vl.markPoint` and `vl.encode` to define the marks. It uses `d3.csv` to fetch the data from an `auto-mpg.csv` file, and the `config` object customizes axis and label styling for readability. The plot dynamically resizes to fill the window.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes