🌍 Public
Cantor Set
This visualization renders the Cantor set as an L-System, expanding the initial symbol "A" through eight iterations into a hierarchical string representation. Each generation appears as a horizontal band of black rectangles corresponding to the symbol "A," while "B" symbols remain empty, creating the familiar fractal’s self-similar gaps. Built with React and D3 v5, it uses `scaleBand` for positioning and sizing along both axes, with the width scale dynamically redomained per row. The SVG output is generated declaratively, mapping each valid symbol to a `<rect>` element within the React component tree.
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.