News for hackers. Stuff that matters.
Re:React and Data Visualization by chrisdevereux on Tuesday June 09, 2015 @02:56PM (#9687856)
Seems like React does (some of) the same stuff as d3, at least w/r/t mapping DOM objects onto data.

What does d3 add over React, other than some utilities for producing scales, etc?

Re:React and Data Visualization by krcz on Tuesday June 09, 2015 @03:43PM (#9688112)
It allows you to change the data and group elements into new ones (existing in the data but not in DOM), updated (existing both in the data and DOM) and removed ones (only in DOM). Then it lets you to do some cool stuff on them, like transitions: http://bl.ocks.org/mbostock/3808218 http://bl.ocks.org/mbostock/3808221 http://bl.ocks.org/mbostock/3808234
Re:React and Data Visualization by weego on Wednesday June 10, 2015 @04:29AM (#9690669)
Why don't we just take that statement to the logical conclusion of boiling it down to "javascript does some of the same stuff that D3 does".

I mean yeah, you can write everything that D3 does yourself, but React isn't actually doing anything here. You could swap React for Angular/Backbone in this situation and you'd still be the guy ignoring almost everything we're learned from leveraging open source projects over the last 20 years.

Re:React and Data Visualization by illicium on Tuesday June 09, 2015 @04:07PM (#9688235)
D3 is really a half-DOM, half-visualization algorithm library, but the latter is much more than a few utility functions. For example, D3's layouts (https://github.com/mbostock/d3/wiki/Layouts) which you can use independently of its DOM renderer.
Re:React and Data Visualization by eterm on Tuesday June 09, 2015 @03:46PM (#9688124)
D3 has some really nice stuff for doing transitions, I could imagine that being a lot more difficult to get right just using react.
Re:React and Data Visualization by findjashua on Tuesday June 09, 2015 @04:47PM (#9688437)
d3 computes the svg attributes (data) that react renders onto the dom