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)

68448d51820a46d4b47f2e376049c28f

Fork of Vega-Lite API Template

0 stars0🌍 Public
Kkoubaib ben yedder
Last edited Aug 28, 2022
Created on Aug 28, 2022

This example uses the Vega-Lite API to create a scatter plot from the auto-mpg dataset, mapping displacement and horsepower on the x- and y-axes. It configures point marks with transparency and tooltips showing the car name. The code builds the visualization by importing `vega`, `vega-lite`, and `vega-lite-api`, fetches data via `d3.csv` from a GitHub gist, and renders with a custom dark theme. It also integrates `vega-tooltip` for interactive hover information.

AI-generated description

A visualization constructed using the vega-lite-api.