🌍 Public
Viewing a saved revision (read-only)
8bafb0d17cdb4e218ea7583403ef2e4c
Vega-Lite API Template
This example visualizes automobile data from a CSV file, plotting engine displacement against horsepower as a scatter plot with points colored by model year, sized by vehicle weight, and displaying car names on tooltip. The visualization is built using the Vega-Lite API, which programmatically constructs a specification that is rendered as SVG through Vega and Vega-Lite. The data is loaded asynchronously via D3's `csv` function, and the chart includes visual customization through a custom config object that adjusts axis and label styling.
AI-generated descriptionA visualization constructed using the vega-lite-api.