🌍 Public
Viewing a saved revision (read-only)
87d4954d238e414c939f29662c200cda
Fork of Vega-Lite API Template
This example visualizes the relationship between engine displacement and vehicle weight using a scatter plot of the auto-mpg dataset. The visualization is built with the Vega-Lite API, which registers Vega and Vega-Lite libraries to render an interactive SVG chart. Points are styled with size, opacity, and tooltips showing car names, while the chart automatically fits the window dimensions. Data loading uses D3's `csv` function, and appearance is customized through a reusable configuration object that adjusts axis labels, titles, and tooltip styling.
AI-generated descriptionA visualization constructed using the vega-lite-api.