Skip to content

Commit 3393334

Browse files
authored
Merge pull request #761 from plotly/non-scaling-stroke
Non-scaling SVG scatter lines
2 parents 1e544f0 + c8274ed commit 3393334

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/traces/scatter/plot.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ module.exports = function plot(gd, plotinfo, cdscatter) {
161161
revpath = thisrevpath + 'Z' + revpath;
162162
}
163163
if(subTypes.hasLines(trace) && pts.length > 1) {
164-
tr.append('path').classed('js-line', true).attr('d', thispath);
164+
tr.append('path')
165+
.classed('js-line', true)
166+
.style('vector-effect', 'non-scaling-stroke')
167+
.attr('d', thispath);
165168
}
166169
}
167170
if(ownFillEl3) {

0 commit comments

Comments
 (0)