Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Scatterplot of the Iphone sales

Public visualization

Viewing a saved revision (read-only)

1236af4d634e44f5901877fb2aae6fff

Fork of Scatterplot of the Iphone sales

0 stars0🌍 Public
Mmukundakrishna.r@gmail.com
Last edited Mar 22, 2024
Created on Mar 22, 2024

This scatterplot shows the relationship between the sale price of iPhones and their number of ratings, with each point representing a product model. The visualization uses D3.js v7 to load a CSV dataset of iPhone sales from a GitHub gist, parse the numeric fields, and render circles scaled by the sale price on the x-axis and ratings count on the y-axis. The code employs d3.scaleLinear for both axes, d3.extent for domain computation, and d3.axisBottom and d3.axisLeft for tick marks. Hovering over a dot changes its fill color to orange, while the default styling uses steelblue, as defined in the CSS.

AI-generated description

This scatterplot is between rating and total reviews of the restaurant. It has been created using html,css and js.