Skip to main content
Public

Share visualization

Loading preview…

Fork of Vega-Lite API Template

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Vega-Lite API Template

0
Yyeeet0421
Last edited Sep 20, 2022
Created on Sep 20, 2022

This example shows a scatter plot of auto-mpg data, with a circle for each car positioned by miles per gallon and horsepower. The color of each circle encodes the car’s origin, while its size reflects the car’s weight, and hovering reveals the model name. It uses the Vega-Lite API to define the visualization declaratively, with D3’s `csv` function to load the data from the UCI Machine Learning Repository. The chart is rendered as an SVG via Vega and Vega-Lite, with tooltips provided by the vega-tooltip handler.

AI-generated description

A visualization constructed using the vega-lite-api.

The data shown here comes from the UCI Machine Learning Repository: Auto MPG Data Set, via Gist: Scatter Plot with Menus.

Comments

Sign in to join the discussion.

MIT Licensed