Skip to main content
Public

Share visualization

Loading preview…

Vega-Lite API Test

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 Test

0
Ffreyr4
Last edited Mar 14, 2022
Created on Mar 14, 2022

This example displays a scatterplot of automobile data, with engine displacement on the x-axis and horsepower on the y-axis, using semi-transparent points to reveal overlapping density. The visualization is built using the `vega-lite-api` and `vega` libraries, loading data from a CSV via `d3.csv`. It customizes axis and label styling through a `config` object and integrates a tooltip via `vega-tooltip`. The chart resizes to fit the browser window and renders as an SVG.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed