Fork of Scatter Plot
This scatter plot visualizes the relationship between Total Cost and Total Profit from a 100 Sales Records dataset, loaded via `d3.csv` from a GitHub gist. Each circle represents a data point, with an interactive tooltip displaying the country and axis values on hover. The visualization uses D3.js v7 within a React framework, rendering SVG elements with a linear scale for both axes and applying a hover effect that changes point color to orange. The tooltip is implemented by appending an HTML div and manipulating its position and opacity through event handlers.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
Added content = d3.csv (line 3)
Tooltip - create in html, add details in json See line 13 and line 44+ in js file;