Cars Vega-Lite
✓ Published0🌍 Public
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.
MIT Licensed