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)

f875a493cc8d49a5af2c3dff26bc8be9

Fork of Vega-Lite API Template

0 stars0🌍 Public
AAakarshak Sthapak
Last edited Apr 18, 2021
Created on Apr 18, 2021

This example visualizes the relationship between engine displacement and horsepower for classic automobiles, with tooltips revealing each car’s name. It uses the Vega-Lite API to declare the scatterplot marks and encodings, while customizing axis and label styling via a shared config object. Data is loaded asynchronously from a CSV using d3.csv, then rendered as an SVG through Vega’s view system. The visualization fills the browser window and fades overlapping points for readability.

AI-generated description

A visualization constructed using the vega-lite-api.