Untitled
✓ Published0🌍 Public
This example shows a 3D scatter plot comparing two datasets, each displayed as a set of markers with distinct visual styling. It loads the `3d-scatter.csv` file from the Plotly datasets repository via D3’s CSV parser, then unpacks the x, y, and z coordinates for each trace using the `unpack` function. The visualization renders two `scatter3d` traces filled with circles of a fixed size, varied opacity, and either a light outline or solid gray color. The layout eliminates all margins, and the chart is drawn in the `myDiv` element using Plotly’s `newPlot` API.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed