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?
![](https://itnursery.com/wp-content/uploads/2022/05/apple-touch-icon@2.png)
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?