Skip to content

Commit a0a62af

Browse files
committed
fixup bgcolor for polar polygons grids
1 parent 24276b3 commit a0a62af

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/plots/polar/polar.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -280,15 +280,15 @@ proto.updateLayout = function(fullLayout, polarLayout) {
280280
yaxis.isPtWithinRange = function() { return true; };
281281

282282
_this.clipPaths.forTraces.select('path')
283-
.attr('d', pathSectorClosed(radius, sector))
283+
.attr('d', pathSectorClosed(radius, sector, _this.vangles))
284284
.attr('transform', strTranslate(cxx, cyy));
285285

286286
layers.frontplot
287287
.attr('transform', strTranslate(xOffset2, yOffset2))
288288
.call(Drawing.setClipUrl, _this._hasClipOnAxisFalse ? null : _this.clipIds.forTraces);
289289

290290
layers.bg
291-
.attr('d', pathSectorClosed(radius, sector))
291+
.attr('d', pathSectorClosed(radius, sector, _this.vangles))
292292
.attr('transform', strTranslate(cx, cy))
293293
.call(Color.fill, polarLayout.bgcolor);
294294

-313 Bytes
Loading

test/image/mocks/polar_polygon-grids.json

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
},
8585
"polar4": {
8686
"usepolygons": true,
87+
"bgcolor": "#d3d3d3",
8788
"domain": {
8889
"x": [0.54, 1],
8990
"y": [0, 0.44]

0 commit comments

Comments
 (0)