Skip to content

Instantly share code, notes, and snippets.

@rjurney
Created July 10, 2016 19:35
Show Gist options
  • Save rjurney/791cfbb3bf3e931f3a4bd3ee2a263c97 to your computer and use it in GitHub Desktop.
Save rjurney/791cfbb3bf3e931f3a4bd3ee2a263c97 to your computer and use it in GitHub Desktop.
function zoomed() {
svg.attr("transform", d3.event.transform);
}
svg = d3.select(".chart")
.append("svg")
.attr("width", w)
.attr("height", h)
.append("g")
.call(zoom)
;
// I cause choppy zoom, slow pan: http://dev.relato.io/gene
function zoomed() {
group1.attr("transform", d3.event.transform);
}
svg = d3.select(".chart")
.append("svg")
.attr("width", w)
.attr("height", h)
.append("g")
.call(zoom)
;
var group1 = svg.append("g");
// I work well, the zoom is usable: http://staging.relato.io/gene
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment