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)

d3cc95b6e186418e8739c34e5d5f3175

Fork of Vega-Lite API Template

0 stars0🌍 Public
TTylerSaikaleyTheriault
Last edited May 30, 2022
Created on May 30, 2022

This example displays a scatter plot of automotive data, with each circle representing a vehicle based on its miles per gallon, horsepower, origin, and weight. The visualization uses the Vega-Lite API within a D3.js context to render interactive SVG graphics. It loads a CSV dataset from a GitHub gist and applies custom encoding for position, color, and size, while tooltips reveal vehicle names. The code integrates vega, vega-lite, vega-lite-api, and vega-tooltip libraries, with the figure automatically fitting the browser window.

AI-generated description

A visualization constructed using the vega-lite-api.