Skip to main content
100%

Gokul's Vega-Lite API Template

✓ Published0🌍 Public
GGokulkrishnan1996
Last edited Jul 8, 2022
Created on Jul 8, 2022

This example visualizes automobile performance by plotting miles per gallon against horsepower, with circles colored by origin and sized by weight, and tooltips revealing car names. It loads the classic Auto MPG dataset from a CSV file using D3’s `csv` function. The visualization is built with the Vega-Lite API (`vl.markCircle`, `vl.x`, `vl.y`), which compiles to Vega and renders to SVG, while the `vega-tooltip` handler enables interactive hover details. Configuration settings adjust axis fonts and gridline appearance for readability.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes