🌍 Public
Viewing a saved revision (read-only)
d117f39c2a6c4ddf91a9382f279a480d
Fork of Untitled
This example shows a 2D scatter plot of product cost versus selling price, with each product represented as a small purple circle. The x-axis encodes cost price and the y-axis encodes selling price, both using linear scales. The code loads CSV data from a GitHub gist via `d3.csv` and renders the plot as SVG circles using `d3.scaleLinear` and `d3.axisBottom`/`d3.axisLeft` for axes. Despite the title mentioning "3D," the visualization is strictly two-dimensional, with axis labels added via HTML divs.
AI-generated description