Viewing a saved revision (read-only)
82f5f2546ce84c49a42e5c0ed3eb3093
Reusable scatter plot
This scatter plot visualizes Walmart sales data, showing the relationship between item price and total sales. The visualization reveals how sales figures correlate with product pricing across different items. The code uses D3 v5's `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` functions to map the data from a CSV file to SVG circles, with each circle representing a data point. The chart includes labeled axes for Total Sales and Item Price, along with a descriptive title. The responsive design fills the browser window, and the styling incorporates custom fonts and tick sizes for improved readability.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.