News for hackers. Stuff that matters.
Re:Learn D3 by Bishonen88 on Wednesday March 25, 2020 @02:22PM (#22687096)
Having created mostly static in excel, I found the premise of d3 awesome! As the complexity to use it was kind of overwhelming, I ended up using plotly.js and its react wrapper for an analytical app at work.

Whilst this works great and is super straightforward, there's many little things that you can't easily control in plotly (and other similar libraries). They come with some bugs/quirks that perhaps are meaningless to 95% of their users, but limit me from making my ideal dashbaord.

E.g. plotly doesn't seem to support formatting a date as a week with a ISO8601 (%V): https://github.com/plotly/plotly.js/issues/424 and many other little things.

What's the best way to use d3 with react these days, then? Is there some recommendation from Mike or someone else who is experienced in this area?

Re:Learn D3 by wattenberger on Wednesday March 25, 2020 @05:48PM (#22688806)
Repeating a comment I made above, this semi-finished blog post I'm working on might be helpful:

https://wattenberger.com/blog/react-and-d3

I generally like to stick with React for DOM manipulation, and use D3 like a utility library.