🌍 Public
Viewing a saved revision (read-only)
35caeb01cb1741eeb354b239907891fc
Vega-Lite API
This example visualizes the relationship between car origin, horsepower, and model name using the Vega-Lite API, a JavaScript wrapper for Vega-Lite. It renders a scatterplot of points colored by origin, with tooltips displaying car names. The code loads automobile data from a CSV file via d3.csv and uses Vega-Lite’s declarative mark and encoding methods to specify the chart, which is then rendered to SVG with Vega. Appearance is customized through a configuration object, and the chart is sized to fit the browser window.
AI-generated descriptionA visualization constructed using the vega-lite-api.