🌍 Public
Viewing a saved revision (read-only)
75d528bb04394d6d998161e22258fed7
Vega-Lite API Template
This example demonstrates a scatter plot of automotive data, showing the relationship between engine displacement and horsepower for various car models, with tooltips revealing the car name for each point. Built with the Vega-Lite API, the visualization renders directly to SVG using the `vl` interface to define marks and encodings. The code registers Vega and Vega-Lite, loads data from a CSV file via `d3.csv`, and applies custom styling through a `config` object to improve readability.
AI-generated descriptionA visualization constructed using the vega-lite-api.