Scatterplot Visualization
✓ Published5🌍 Public
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 descriptionMIT Licensed