Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Untitled

Public visualization

Viewing a saved revision (read-only)

d117f39c2a6c4ddf91a9382f279a480d

Fork of Untitled

0 stars0🌍 Public
VVineela Reddy
Last edited Apr 5, 2023
Created on Apr 5, 2023
Forked from 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