🌍 Public
Viewing a saved revision (read-only)
1a4a82ab934d4ca18ec66ca25c1d2aa2
Fork of Vega-Lite API Template
This example uses the Vega-Lite API with D3 to render a scatterplot of automobile data from a CSV file. The visualization encodes origin as the x-axis, horsepower as the y-axis, weight as color, and mpg as point size, with tooltips showing car names. It applies custom axis and label styling via the Vega-Lite config, and uses the vega-tooltip handler for interactive hover details. The chart is rendered as an SVG that fits the full window using the vega-lite-api’s `render()` method.
AI-generated descriptionA visualization constructed using the vega-lite-api.