Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

cd7349d01d30403b8a4f979bd3e3ca28

Fork of Vega-Lite API Template

0 stars0🌍 Public
AasafJortilles
Last edited Mar 17, 2023
Created on Mar 17, 2023

This example visualizes car performance data from the auto-mpg dataset, plotting horsepower against miles per gallon and coloring points by country of origin. The visualization uses the Vega-Lite API to define a scatter plot with circles, where both color and size encode variables, and tooltips display car names. It loads data via d3.csv, configures a dark theme with custom axis styling, and renders the chart as SVG using Vega-Lite’s vega-lite-api library, integrated with vega-tooltip for interactive hover details.

AI-generated description

A visualization constructed using the vega-lite-api.