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
CCoollRock
Last edited Sep 29, 2021
Created on Sep 29, 2021

This example uses the Vega-Lite API to plot automobile performance data from a CSV file, encoding engine displacement, horsepower, model year, and weight as visual channels. A scatterplot of circles renders each car with size mapped to weight and color to year, while tooltips display the model name. The chart is built by registering vega, vega-lite, and the vega-lite-api library, and it uses D3’s csv loader to fetch the data. Custom axis and label styling in config.js improves readability against a dark text color.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed