🌍 Public
Viewing a saved revision (read-only)
1160b661194f4fa08421f3c983d1b41f
Cars Vega-Lite
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 descriptionA visualization constructed using the vega-lite-api.