Skip to main content
Public

Share visualization

Loading preview…

Vega-Lite API

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

Vega-Lite API

0
PPatric Tysk
Last edited Nov 5, 2021
Created on Nov 5, 2021

This example visualizes the relationship between engine acceleration and horsepower for vintage automobiles, with a tooltip revealing each vehicle’s name. It embeds a Vega-Lite specification built programmatically via the `vega-lite-api` package, which registers both Vega and Vega-Lite for SVG rendering and tooltip integration. The scatterplot uses an opacity of 0.1 and size 900 to show overlapping points, while axes and tick labels are customized through a Vega-Lite `config` object. Data is loaded asynchronously from a CSV using d3’s `csv` loader. The visualization automatically fits the browser window using `autosize`.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed