Skip to main content
100%

x3dom in D3

✓ Published0🌍 Public
SSaminu
Last edited Feb 11, 2017
Created on Feb 11, 2017

This example combines D3.js with x3dom to render an interactive 3D scatterplot of 40 randomly generated points. Three coordinate axes are drawn using the custom `d3_x3dom_axis.x3domAxis` API, with colored lines for x, y, and z scales. A 3D scene is built by appending `x3d`, `scene`, and `viewpoint` elements, while points are plotted as spheres via appended `transform`, `shape`, and `sphere` elements. The code uses D3's `scaleLinear` for mapping data ranges and demonstrates direct DOM manipulation through D3 selections in an x3dom context.

AI-generated description

Demo for d3-x3dom-axis

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/fabid/'>fabid</a>'s block: <a href='http://bl.ocks.org/fabid/61cbfe14de686cc25c47'>d3 x3dom axes</a>

forked from <a href='http://bl.ocks.org/fabid/'>fabid</a>'s block: <a href='http://bl.ocks.org/fabid/acb5dc4961ffa741b52b'>d3 x3dom scatter</a>

mit Licensed

Similar vizzes