Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mbourdo committed Jul 17, 2024
1 parent f9e12ae commit 0215927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ function drawTreeMap(data, transition = false) {
const group = d3.select(this); // Select the current group

// Calculate the appropriate font size for name text
const nameFontSize = Math.min((d.x1 - d.x0) / 10, (d.y1 - d.y0) / 3);
const nameFontSize = Math.min((d.x1 - d.x0) / 10, (d.y1 - d.y0) / 3.3);
// Calculate a smaller font size for enrolled and spent text
const smallFontSize = nameFontSize * 0.8;
const lineHeight = smallFontSize * 1.5;
const lineHeight = smallFontSize * 1.1;

// Add name text
group.append("text")
Expand Down

0 comments on commit 0215927

Please sign in to comment.