🌍 Public
Cantor Set
The Cantor Set appears as a fractal ladder of horizontal black bars against a white background, with each successive row containing fewer and shorter segments. The visualization computes the set as an L-System using production rules (A→ABA, B→BBB), iterated eight times, and renders the result as SVG rectangles via React. D3’s `scaleBand` maps each symbol’s position and width, while a filter selects only A symbols for display. The code leverages React 16.10 and D3 v5, with ReactDOM rendering the final geometric pattern.
AI-generated descriptionThe Cantor Set computed as an L-System and rendered using React.
MIT Licensed


![[D3] Le Witt - Collection](/viz/a8f81e4b76d941aaa7369b4b8fdef5f0/social-image.png?v=b8ad0a20f9a94b7782413c7aee5fbc7b)





Comments
Sign in to join the discussion.