News for hackers. Stuff that matters.
Re:Show HN: I made a gallery of graphs built with React and ... by itairall on Friday June 23, 2023 @12:07PM (#36448809)
Great stuff. I had gone down this path last year with not using attr and it was so hard to find good examples like this.

The thing I never figured out was how to use d3 axis as a svg generator. Starting from scratch on each project is quite painful for the axis and d3 axis is so nice.

Re:Show HN: I made a gallery of graphs built with React and ... by holtzy on Saturday June 24, 2023 @04:44PM (#36462494)
You can: - call d3.axis in a useEffect - Or create your own axis component rendering some svg. It is not so hard actually.