Skip to content

Commit e2c6502

Browse files
authored
Merge pull request #2813 from onesimus-wiafe/bug/fix_treemap_render_in_firefox
fix treemap rendering issue in firefox
2 parents e57c810 + a37e81e commit e2c6502

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ 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)
75-
.style("width", (d) => calcWidth(d))
76-
.style("height", (d) => calcHeight(d));
73+
.style("x", (d) => `${d.x0}px`)
74+
.style("y", (d) => `${d.y0}px`)
75+
.style("width", (d) => `${calcWidth(d)}px`)
76+
.style("height", (d) => `${calcHeight(d)}px`);
7777

7878
rects.style("fill", (d) => {
7979
if (nodeLevelHelper(maxDepth, d) === nodeLevel.leaf) {

0 commit comments

Comments
 (0)