Skip to content

Instantly share code, notes, and snippets.

@matt-oxley
Created April 7, 2019 17:44
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 matt-oxley/b291056d38d92e99abf616eee0734ae0 to your computer and use it in GitHub Desktop.
Save matt-oxley/b291056d38d92e99abf616eee0734ae0 to your computer and use it in GitHub Desktop.
const binding = svg
 .selectAll("rect")
 .data(data)
 
 binding
 .enter()
 .append("rect")
 .merge(binding)
 .attr("height", d => yScale(d))
binding.exit().remove()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment