🌍 Public
Viewing a saved revision (read-only)
585d66732f794b2c9890126a05c4d88c
Fork of Vega-Lite API Template
This example visualizes automobile performance and origin using a scatter plot generated with the Vega-Lite API, where each circle’s position encodes miles per gallon and horsepower, while color indicates the car’s origin and size encodes weight. Tooltips display the car name on hover. The code loads a CSV dataset via `d3.csv`, constructs the chart with `vl.markCircle` and its encoding helpers, then renders it to canvas using Vega’s `view` with a custom config for axis styling and label fonts. The visualization fills the window and updates responsively.
AI-generated descriptionA visualization constructed using the vega-lite-api.