Skip to main content
Public

Share visualization

Loading preview…

Scatterplot Visualization

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

Scatterplot Visualization

3
CChhoden Sherpa
Last edited May 11, 2022
Created on Mar 19, 2022

This scatterplot visualization explores the correlation between the average price of a boba drink and the cost of living index across 35 U.S. cities. Each circle represents a city, positioned by its cost of living index on the x-axis and boba price on the y-axis. The D3.js code reads data from a CSV file, scales axes with `d3.scaleLinear`, and renders the chart as SVG elements. Interactive tooltips display city name, price, and cost index on hover, using D3's event listeners to show and hide the tooltip div.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed