🌍 Public
Viewing a saved revision (read-only)
5683c0e38c8a474abbbeaaad5b35d458
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.