Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

c6520a37eecb4c3792fb9a36b4d70562

Vega-Lite API Template

0 stars0🌍 Public
AAntonio Rungo
Last edited Feb 15, 2020
Created on Feb 15, 2020

This example visualizes the relationship between acceleration and horsepower for a collection of automobiles, with each point representing a car and a tooltip revealing its name. It is built using the Vega-Lite API, which programmatically constructs a scatter plot through method chaining in `viz.js`. The code loads data from a CSV file via D3’s `csv` function, then renders the chart with Vega and Vega-Lite in an SVG view. The `config.js` file customizes axis styling and typography for improved readability.

AI-generated description

A visualization constructed using the vega-lite-api.