Skip to main content
100%

Creating a Scatter Plot with D3.js

✓ Published0🌍 Public
Ssaiyogesh9911@gmail.com
Last edited Mar 21, 2024
Created on Mar 20, 2024

This scatter plot visualizes Walmart’s weekly sales against temperature, with each steel-blue circle representing one week. The x-axis spans the temperature range, while the y-axis starts at zero and extends to the maximum sales value. Built using the D3.js v5 API, the example loads a cleaned CSV from a GitHub gist and renders an SVG. It applies `d3.scaleLinear`, `d3.extent`, `d3.axisBottom`, and `d3.axisLeft` to construct the axes and map data points.

AI-generated description
MIT Licensed

Similar vizzes