Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

5752de7df1a34bfdbf27fbc5d621d74a

Vega-Lite API Template

0 stars0🌍 Public
PPUUDI
Last edited Nov 26, 2021
Created on Nov 26, 2021

This example visualizes automotive data from an auto-mpg CSV dataset, plotting engine weight against horsepower with circles colored by origin and sized by miles per gallon. The code constructs the visualization using the Vega-Lite API, registering it with vega and vega-lite, and rendering as SVG via d3.dsv. A custom configuration adjusts axis labels and tick styling for readability, while d3.csv loads the remote dataset. Tooltips display car model names on hover using vega-tooltip.

AI-generated description

A visualization constructed using the vega-lite-api.