Skip to main content
Public

Share visualization

Loading preview…

Vega-Lite API Scatter Plot

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 Scatter Plot

0
AAdnan
Last edited May 21, 2023
Created on May 21, 2023

This scatter plot visualizes the relationship between vehicle weight and horsepower for a dataset of automobiles, with points colored by country of origin. The visualization is built using the Vega-Lite API, which is registered with Vega and Vega-Lite to render SVG graphics. Data is loaded via D3’s `csv` function from a remote Gist, and tooltips are handled by Vega-Tooltip to display car names on hover. The chart’s appearance is customized through a configuration object that styles axis labels and titles.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed