Creating a Scatter Plot with D3.js
✓ Published0🌍 Public
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 descriptionMIT Licensed