Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

A2Q4

Public visualization

Viewing a saved revision (read-only)

24e52d1d50a047f29682d9449208de43

A2Q4

0 stars0🌍 Public
MmNamratha25
Last edited Jul 20, 2023
Created on Jul 20, 2023

This scatterplot shows the correlation between the average price of a boba drink and the cost of living index for 35 U.S. cities. Interactive tooltips display each city’s name, drink price, and cost index when hovering over a point. The visualization is built with D3 v7 using an SVG canvas, and leverages `d3.scaleLinear` for the axes, `d3.axisLeft` and `d3.axisBottom` for the scales, and `d3.csv` to load the data. Axis labels and a title are drawn with SVG text elements.

AI-generated description