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

0
AAntonio Rungo
Last edited Feb 15, 2020
Created on Feb 15, 2020

This example visualizes the relationship between acceleration and horsepower for a collection of automobiles, with each point representing a car and a tooltip revealing its name. It is built using the Vega-Lite API, which programmatically constructs a scatter plot through method chaining in `viz.js`. The code loads data from a CSV file via D3’s `csv` function, then renders the chart with Vega and Vega-Lite in an SVG view. The `config.js` file customizes axis styling and typography for improved readability.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed