From fe7c1b36aed20dccca94a7f9fa314cee6d8611c5 Mon Sep 17 00:00:00 2001 From: Daniel Ellis Date: Mon, 2 Dec 2024 20:23:00 +0000 Subject: [PATCH] development --- static/treemap/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/treemap/index.js b/static/treemap/index.js index 64ab052..71f3d90 100644 --- a/static/treemap/index.js +++ b/static/treemap/index.js @@ -108,6 +108,7 @@ async function createTreemap() { .attr('fill-opacity', (d, i, nodes) => i === nodes.length - 1 ? 0.7 : null ) + .attr('font-size', (d, i, nodes) =>d.depth>2?"0.6em":'1em') .text((d) => d); // Positioning for parent nodes (with children) @@ -124,7 +125,7 @@ async function createTreemap() { .attr('x', 3) .attr('y', (d, i, nodes) => { const isLastItem = i === nodes.length - 1; - return isLastItem ? '1.4em' : `${i * 0.9}em`; + return isLastItem ? '1.4em' : '1em';//`${i * 0.9}em`; }); return svg.node();