Skip to content

Commit 0904db3

Browse files
authored
Merge pull request #1723 from plotly/sankey-transform-attr
Switching to a SVG presentation attribute to assist Microsoft browsers
2 parents 5601f90 + df53932 commit 0904db3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/traces/sankey/render.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ function salientEnough(d) {
264264
}
265265

266266
function linksTransform(d) {
267-
return d.horizontal ? 'matrix(1,0,0,1,0,0)' : 'matrix(0,1,1,0,0,0)';
267+
return d.horizontal ? 'matrix(1 0 0 1 0 0)' : 'matrix(0 1 1 0 0 0)';
268268
}
269269

270270
function textGuidePath(d) {
@@ -444,11 +444,11 @@ module.exports = function(svg, styledData, layout, callbacks) {
444444
.append('g')
445445
.classed('sankeyLinks', true)
446446
.style('fill', 'none')
447-
.style('transform', linksTransform);
447+
.attr('transform', linksTransform);
448448

449449
sankeyLinks.transition()
450450
.ease(c.ease).duration(c.duration)
451-
.style('transform', linksTransform);
451+
.attr('transform', linksTransform);
452452

453453
var sankeyLink = sankeyLinks.selectAll('.sankeyLink')
454454
.data(function(d) {

0 commit comments

Comments
 (0)