Fork of 3d Bar Chart
✓ Published0🌍 Public
RRahulSai05
Last edited Mar 10, 2022
Created on Mar 10, 2022
This example displays a 3D bar chart using d3 and SVG, with bars rendered as extruded blocks and a pseudo-3D perspective projection. The chart uses a custom `bar3d.js` module that computes visible faces (front, top, left, right) based on a camera position, and animates changes via d3's transition system. The data is loaded from a TSV file and mapped to categorical x- and z-axes, with bar heights representing frequency. The bars are drawn with distinct face colors and highlight on hover, while axis labels and gridlines are styled using the d3.svg.axis API.
AI-generated descriptionA visualization constructed using the vega-lite-api.
MIT Licensed