Skip to content

Commit 83578c8

Browse files
committed
convert line color using line.color and trace.opacity
1 parent 476818c commit 83578c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/traces/scattergl/convert.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,10 +486,9 @@ proto.updateLines = function(options, positions) {
486486
}
487487
this.lineOptions.positions = linePositions;
488488

489-
var lineColor = str2RGBArray(options.line.color);
490-
if(this.hasMarkers) lineColor[3] *= options.marker.opacity;
491489

492-
var lineWidth = Math.round(0.5 * this.lineOptions.width),
490+
var lineColor = convertColor(options.line.color, options.opacity, 1),
491+
lineWidth = Math.round(0.5 * this.lineOptions.width),
493492
dashes = (DASHES[options.line.dash] || [1]).slice();
494493

495494
for(i = 0; i < dashes.length; ++i) dashes[i] *= lineWidth;

0 commit comments

Comments
 (0)