Skip to main content
100%

spiral bar chart from d3 help

✓ Published0🌍 Public
NNita
Last edited Dec 2, 2020
Created on Dec 2, 2020
Forked from React Starter

A React app renders a spiral bar chart by first drawing a curved spiral path with d3.radialLine, then attaching 730 rectangular bars along that path, one for each day of simulated date-based data. Each bar's height maps to a random value through d3.scaleLinear, and its rotation aligns with the spiral's angle at that position using d3.path getPointAtLength. Date labels are added via d3.timeFormat and SVG textPath elements, placed at month boundaries. The chart uses SVG rendering within a 500x500 viewport.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes