Skip to content

Instantly share code, notes, and snippets.

@bumbeishvili
Created June 2, 2021 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bumbeishvili/16e541752e10f086325b57c4152e03bc to your computer and use it in GitHub Desktop.
Save bumbeishvili/16e541752e10f086325b57c4152e03bc to your computer and use it in GitHub Desktop.
D3 Differences
// Old
d3.selectAll('rect')
.data(data)
.append('rect')
// New
d3.selectAll('rect')
.data(data)
.join('rect')
// Old
d3.csv('dataUrl',function(data){
console.log(data)
})
// New
d3.csv('dataUrl')
.then(function(data){
console.log(data)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment