Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

ad86174cc3a04d419a40ba7e1f23ba3a

Vega-Lite API Template

0 stars0🌍 Public
GGnav3852
Last edited Nov 25, 2020
Created on Nov 25, 2020

This example visualizes the relationship between engine displacement and horsepower using a scatter plot of vehicle data. The visualization employs a Vega-Lite specification constructed programmatically via the vega-lite-api library, with data loaded from a CSV file using d3.csv. The chart renders as a single SVG element sized to fit the viewport, with points colored by opacity to reveal density. Axis styling and font sizes are customized through a Vega-Lite configuration object, while tooltips are enabled through vega-tooltip.

AI-generated description

A visualization constructed using the vega-lite-api.