Skip to content

Commit 3b08da1

Browse files
committed
Make proper fill behaviour
1 parent f77f90b commit 3b08da1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/traces/scattergl/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,8 @@ ScatterGl.scene = function getScene(container, subplot) {
576576
scene.draw = function draw() {
577577
for(var i = 0; i < scene.count; i++) {
578578
if(scene.fill2d) scene.fill2d.draw(i);
579+
}
580+
for(var i = 0; i < scene.count; i++) {
579581
if(scene.line2d) {
580582
scene.line2d.draw(i);
581583
}
@@ -786,7 +788,7 @@ ScatterGl.plot = function plot(container, subplot, cdata) {
786788
if(scene.fill2d) {
787789
scene.fillOptions.forEach(function(fillOptions, i) {
788790
var cdscatter = cdata[i];
789-
if(!cdscatter || !cdscatter[0] || !cdscatter[0].trace) return;
791+
if(!fillOptions || !cdscatter || !cdscatter[0] || !cdscatter[0].trace) return;
790792
var cd = cdscatter[0];
791793
var trace = cd.trace;
792794
var stash = cd.t;

0 commit comments

Comments
 (0)