Skip to main content
Public

Share visualization

Loading preview…

D3 Scatter Plot - Amazon Bestsellers Dataset - Sitanshu Rupani

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

D3 Scatter Plot - Amazon Bestsellers Dataset - Sitanshu Rupani

1
SSitanshu Rupani
Last edited Sep 29, 2021
Created on Sep 15, 2021

This scatter plot displays the relationship between user ratings and book prices for Amazon’s top 50 bestsellers, with user rating on the x-axis and price on the y-axis. Each circle represents a book, positioned using d3.scaleLinear and bound to SVG circle elements via data joins. The axes are rendered with d3.axisLeft and d3.axisBottom, and the data is loaded asynchronously using d3.csv from a gist-hosted CSV file. The visualization uses D3 v6 and fills the full browser window with a minimal margin layout.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot.
This viz. is a scatter plot between the average review of a book out of 5 on the X axis vs the price of the book on the Y axis.

Source: Amazon Top 50 Bestsellers Dataset.

Comments

Sign in to join the discussion.

MIT Licensed