Skip to main content
Public

Share visualization

Loading preview…

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

Vega-Lite API Template

1
CCurran Kelleher
Last edited Nov 15, 2019
Created on Nov 15, 2019

This example demonstrates a scatterplot of automobile data from the auto-mpg CSV dataset, plotting horsepower against model year. Rendered as a static SVG via the Vega-Lite API, each circle is semi-transparent black, with a tooltip showing the car name on hover. The visualization is built programmatically using `vl.markCircle()`, `vl.x()`, and `vl.y()` encodings, with data loaded asynchronously via `d3.csv`. The chart fills the browser window and uses custom axis and label styling from a shared config object.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed