Skip to main content
100%

Untitled

✓ Published0🌍 Public
RRamya19-hub
Last edited Apr 3, 2023
Created on Apr 3, 2023
Forked from D3 Starter

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 description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes