Skip to content

Commit a37e81e

Browse files
committed
include width and height to the fix
Signed-off-by: Onesimus Wiafe <onesimus.wiafe@turntabl.io>
1 parent 4323059 commit a37e81e

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
@@ -72,8 +72,8 @@ export function treemapSeries() {
7272
.attr("class", (d) => `treerect ${nodeLevelHelper(maxDepth, d)}`)
7373
.style("x", (d) => `${d.x0}px`)
7474
.style("y", (d) => `${d.y0}px`)
75-
.style("width", (d) => calcWidth(d))
76-
.style("height", (d) => calcHeight(d));
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)