Skip to content

Commit 375ff11

Browse files
committed
rm cartesian bg layer in range slider range plot
- it was causing pdf/eps export to fail because the <rect> node didn't have x/y/width/height attributes - remove it as the range slider bg is all we need here
1 parent bfc49fb commit 375ff11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/rangeslider/draw.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,9 @@ function drawRangePlot(rangeSlider, gd, axisOpts, opts) {
377377

378378
Cartesian.rangePlot(gd, plotinfo, filterRangePlotCalcData(calcData, id));
379379

380-
if(isMainPlot) plotinfo.bg.call(Color.fill, opts.bgcolor);
380+
// no need for the bg layer,
381+
// drawBg handles coloring the background
382+
if(isMainPlot) plotinfo.bg.remove();
381383
});
382384
}
383385

0 commit comments

Comments
 (0)