Skip to content

Commit 4323059

Browse files
committed
fix treemap rendering issue in firefox
Signed-off-by: Onesimus Wiafe <onesimus.wiafe@turntabl.io>
1 parent 09204c5 commit 4323059

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/perspective-viewer-d3fc/src/ts/series/treemap/treemapSeries.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export function treemapSeries() {
7070
const rects = nodesMerge
7171
.select("rect")
7272
.attr("class", (d) => `treerect ${nodeLevelHelper(maxDepth, d)}`)
73-
.style("x", (d) => d.x0)
74-
.style("y", (d) => d.y0)
73+
.style("x", (d) => `${d.x0}px`)
74+
.style("y", (d) => `${d.y0}px`)
7575
.style("width", (d) => calcWidth(d))
7676
.style("height", (d) => calcHeight(d));
7777

0 commit comments

Comments
 (0)