Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template Replica

Public visualization

Viewing a saved revision (read-only)

063562aa42644c2ebd7081f7fb9b40de

Vega-Lite API Template Replica

0 stars0🌍 Public
FFelipe Restrepo felipollo
Last edited Sep 25, 2024
Created on Sep 25, 2024

This example reproduces a Vega-Lite scatterplot using the Vega-Lite API to visualize automobile performance data from an auto-mpg CSV file. It plots miles per gallon against horsepower, colored by origin, with tooltips showing vehicle names. The chart renders as an SVG via Vega’s view system, using the vega-lite-api, vega, and vega-lite libraries. Custom configuration adjusts axis and label styling, while D3’s d3.csv loads the data.

AI-generated description

A visualization constructed using the vega-lite-api.