Hacker News new | past | comments | ask | show | jobs | submit login

I've recently been experimenting with how best to leverage the wealth of knowledge which has gone into d3 within the context of React, where the conventional selection-driven APIs become a hinderance rather than a help.

Around that time, I noticed the new modular repos on the d3 Github org[1] coming together, and have since been watching with great anticipation. I'm glad to see d3 evolving for a new world where its excellent, fine-tuned collection of math and drawing functions work in concert with your rendering framework of choice.

[1] https://github.com/d3




For example, here's something pointless I threw together combining d3-shape, d3-scale and react-motion: https://jsbin.com/mehata/edit?js,output


I made a react wrapper component for using d3 style components within react apps. It uses the react lifecycle methods instead of render ...

http://bl.ocks.org/cpapazian/6228888157c39be85e9c

Scroll to the bottom for the wrapper class. Please excuse the coffeescript.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: