Skip to content

Instantly share code, notes, and snippets.

@matt-oxley
Created April 7, 2019 17:40
Show Gist options
  • Select an option

  • Save matt-oxley/a17970ad69d8f1e969a11e4b74526a77 to your computer and use it in GitHub Desktop.

Select an option

Save matt-oxley/a17970ad69d8f1e969a11e4b74526a77 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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment