Skip to main content
100%

3D Bar Chart with d3.js

✓ Published0🌍 Public
Vviswak12
Last edited Apr 6, 2023
Created on Apr 6, 2023
Forked from bonus ice

This example creates a 3D bar chart using the d3-3d extension in an SVG context, displaying categorical values as extruded cubes. It loads data from a Plotly datasets CSV file, then transforms it using d3.scaleBand for the x-axis, d3.scaleLinear for the y-axis, and d3.scaleOrdinal with a category color scheme. The chart applies rotations via rotateX, rotateY, and rotateZ transforms to orient the 3D scene.

AI-generated description

Axes with 3D

MIT Licensed

Similar vizzes