Skip to content

Commit

Permalink
Merge pull request #2813 from onesimus-wiafe/bug/fix_treemap_render_i…
Browse files Browse the repository at this point in the history
…n_firefox

fix treemap rendering issue in firefox
  • Loading branch information
texodus authored Dec 2, 2024
2 parents e57c810 + a37e81e commit e2c6502
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ export function treemapSeries() {
const rects = nodesMerge
.select("rect")
.attr("class", (d) => `treerect ${nodeLevelHelper(maxDepth, d)}`)
.style("x", (d) => d.x0)
.style("y", (d) => d.y0)
.style("width", (d) => calcWidth(d))
.style("height", (d) => calcHeight(d));
.style("x", (d) => `${d.x0}px`)
.style("y", (d) => `${d.y0}px`)
.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 e2c6502

Please sign in to comment.