We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8efd1a commit b90730dCopy full SHA for b90730d
reporter/assets/js/sankey.js
@@ -115,6 +115,9 @@
115
}).on("mouseout", function(t) {
116
mouseout(t, i);
117
})
118
+ .on("click", function(t) {
119
+ click(t, i);
120
+ })
121
},
122
exit: function() {
123
this.remove()
@@ -497,6 +500,16 @@ function mouseout(d, svg) {
497
500
d3.selectAll("[class=\"scene-image\"]").remove();
498
501
}
499
502
503
+function click(d, svg) {
504
+ if(d.image) {
505
+ var im = new Image();
506
+ im.src = "data:image/png;base64," + d.image
507
+ var w = window.open("",'_blank');
508
+ w.document.write(im.outerHTML);
509
+ w.document.close();
510
+ }
511
+}
512
+
513
function label(node) {
514
return node.name.replace(/\s*\(.*?\)$/, '');
515
0 commit comments