Skip to main content
Public

Share visualization

Loading preview…

Untitled

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Untitled

1
SShuyu Zheng
Last edited Dec 29, 2020
Created on Dec 29, 2020
Forked from HTML Starter

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed