Skip to content

Commit

Permalink
include width and height to the fix
Browse files Browse the repository at this point in the history
Signed-off-by: Onesimus Wiafe <onesimus.wiafe@turntabl.io>
  • Loading branch information
onesimus-wiafe committed Nov 19, 2024
1 parent 4323059 commit a37e81e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export function treemapSeries() {
.attr("class", (d) => `treerect ${nodeLevelHelper(maxDepth, d)}`)
.style("x", (d) => `${d.x0}px`)
.style("y", (d) => `${d.y0}px`)
.style("width", (d) => calcWidth(d))
.style("height", (d) => calcHeight(d));
.style("width", (d) => `${calcWidth(d)}px`)
.style("height", (d) => `${calcHeight(d)}px`);

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

0 comments on commit a37e81e

Please sign in to comment.