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)

f685bf770da7448eb3bcf48fcff380fc

Fork of Vega-Lite API Template

0 stars0🌍 Public
LLaura Brown
Last edited Jan 23, 2025
Created on Jan 23, 2025

This example visualizes automobile performance data from a CSV file, plotting each car’s origin against its horsepower as a scatterplot with semi-transparent circles and tooltips showing the vehicle name. It uses the Vega-Lite API to construct the chart declaratively, with D3’s `csv` function for data loading and Vega-Tooltip for interactive hover details. The code registers Vega and Vega-Lite, then renders the visualization in an SVG view, with custom axis and label styling applied via a shared configuration object.

AI-generated description

A visualization constructed using the vega-lite-api.