🌍 Public
Viewing a saved revision (read-only)
52deda8e57e9469a953a31532ddedf0c
Vega-Lite API Template
This example displays a scatter plot of automobile data, showing the relationship between engine displacement and horsepower, with tooltips revealing the car model name. Built with the Vega-Lite API, the visualization loads data from a CSV using `d3.csv` and renders through the `vega` and `vega-lite` libraries. Point marks are configured with a fill, a fixed size, and reduced opacity, while axis styling is customized via a config object. The chart's dimensions adapt to the window size, and interactive tooltips are enabled using `vega-tooltip`.
AI-generated descriptionA visualization constructed using the vega-lite-api.