🌍 Public
Viewing a saved revision (read-only)
3604d1d25f4a413995f8f300efd49b97
Fork of ICE-6: Rendering Marks and Channels with React & D3
Ddivyakota99
Last edited Jun 26, 2022
Created on Jun 26, 2022
A horizontal bar chart displays revenue per month for twelve products from a supermarket dataset, loaded via `d3.csv` from a GitHub Gist. React state and hooks manage the asynchronous data loading, while D3’s `scaleBand` and `scaleLinear` map product categories and revenue values to SVG rectangles. Axes and gridlines are manually rendered with D3’s `ticks` and positioned using SVG transforms, with React generating the markup for each element.
AI-generated descriptionA whole smiley face