Untitled
✓ Published1🌍 Public
This example shows a 3D surface plot of a mathematical function, where the height at each point is determined by a cosine wave based on distance from the origin, scaled by a random factor. Users can drag the surface to rotate it in three dimensions, or click the "update" button to generate a new surface with a different random amplitude. The visualization uses d3._3d to project and draw the surface as SVG paths, with d3-scale-chromatic's interpolateSpectral for coloring and d3.drag for interaction. Each update transitions the new surface in over one second, dynamically recalculating the color scale domain based on the new height range.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed