🌍 Public
Viewing a saved revision (read-only)
5611940ed8a344e38193420013339f3c
Untitled
This visualization displays average sales data across U.S. states using 3D cubes, with each cube’s height representing the sales value and its color denoting the region. Users can interactively rotate the cube arrangement by dragging the mouse, which triggers animated transitions in both cube positions and text labels showing numeric values. The implementation combines d3.v4 with the d3-3d plugin, leveraging `d3._3d()` for cube geometry, `d3.drag()` for interaction, and ordinal color scaling. Data is embedded directly in the script, drawn as SVG elements with smooth tweening for label updates.
AI-generated descriptionA demonstration of how to start using D3 version 6.