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
DDanier
Last edited Sep 15, 2021
Created on Sep 15, 2021

This example displays a scatter plot of car models, with the country of origin on the x-axis and horsepower on the y-axis. Each point is rendered as a large, semi-transparent circle, and hovering reveals the car's name via a tooltip. The visualization is built using the Vega-Lite API, which compiles specifications to Vega, and is rendered as an SVG. Data originates from the UCI Auto MPG dataset, loaded via D3's CSV parser. The code customizes axis labels and tick colors through a configuration object and uses the Vega Tooltip handler for interactive details.

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