🌍 Public
Viewing a saved revision (read-only)
540b72737a8c4f2199b5649658a5ec02
Fork of Vega-Lite API Template
This example uses the Vega-Lite API to render a scatterplot of automotive data from a CSV file, plotting horsepower against the origin of each vehicle. The visualization encodes the `origin` field on the x-axis and the `horsepower` field on the y-axis, with tooltips displaying the car’s name. It loads data asynchronously via `d3.csv`, applies custom axis and label styling from a configuration object, and renders the chart in SVG using `vega-lite-api` with the Vega and Vega-Lite libraries.
AI-generated descriptionA visualization constructed using the vega-lite-api.