From c8274edb1ecf618808a4c28178c1baf9db85ebe8 Mon Sep 17 00:00:00 2001 From: Ricky Reusser Date: Wed, 20 Jul 2016 21:26:24 -0400 Subject: [PATCH] Disable scaling on scatter lines --- src/traces/scatter/plot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/traces/scatter/plot.js b/src/traces/scatter/plot.js index d2388f40c22..b36ce3f05e9 100644 --- a/src/traces/scatter/plot.js +++ b/src/traces/scatter/plot.js @@ -161,7 +161,10 @@ module.exports = function plot(gd, plotinfo, cdscatter) { revpath = thisrevpath + 'Z' + revpath; } if(subTypes.hasLines(trace) && pts.length > 1) { - tr.append('path').classed('js-line', true).attr('d', thispath); + tr.append('path') + .classed('js-line', true) + .style('vector-effect', 'non-scaling-stroke') + .attr('d', thispath); } } if(ownFillEl3) {