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)

c3cc0afd2f0e4317bb90aab9dec3983e

Fork of Vega-Lite API Template

0 stars0🌍 Public
AAnHaiTrinh
Last edited May 8, 2023
Created on May 8, 2023

This example uses the Vega-Lite API to render a scatterplot of automotive data from a CSV, mapping engine displacement and horsepower onto the x- and y-axes, with color encoding by origin and point size representing miles per gallon. It loads the data via `d3.csv` and builds the visualization with `vl.markPoint`, `vl.x`, `vl.y`, and other encoding functions, then renders to SVG using Vega and Vega-Lite, with a custom tooltip handler and configuration for improved readability.

AI-generated description

A visualization constructed using the vega-lite-api.