🌍 Public
Viewing a saved revision (read-only)
bea68b1783c643318e74d8438b34460a
Fork of Vega-Lite API Template
This example renders a scatter plot of automobile data from the `auto-mpg` dataset, mapping acceleration on the x-axis and horsepower on the y-axis, with tooltips revealing vehicle names. It demonstrates programmatic chart construction using the Vega-Lite API (`vl.markPoint`, `vl.x().fieldQ`) within a D3 v5 async data-loading pipeline (`d3.csv`). The visualization is compiled through `vega-lite` and rendered as SVG via the `vega` view, with custom axis styling and tooltip handling from `vega-tooltip`.
AI-generated descriptionA visualization constructed using the vega-lite-api.