Can someone please explain the difference between datum() and data() in D3.js? I see both being used and I am not sure why you should choose one over the other?
Can someone please explain the difference between datum() and data() in D3.js? I see
Share
I found the correct answer here from Mike himself:
D3 – how to deal with JSON data structures?
If you want to bind your data to a single SVG element, use
or
If you want to bind your data to multiple SVG elements
…..