🌍 Public
Viewing a saved revision (read-only)
b73a8a32ef234f6897eab5459d6fb003
Fork of Vega-Lite API Template
This example shows a scatterplot of automobile displacement versus horsepower, with a line mark summarizing the relationship. Tooltips display the vehicle name on hover. Built with the Vega-Lite API, it loads data from a CSV file using `d3.csv` and renders through Vega’s SVG backend. The visualization configures axis styles and disables the domain line for a cleaner look, while the chart size is set explicitly with `width`, `height`, and `autosize`. The code registers Vega-Lite with a Vega tooltip handler for interactive inspection.
AI-generated descriptionA visualization constructed using the vega-lite-api.