I would like the font size to be consistent on this treemap, so I have unchecked Enable Auto Font Size, but I would like it to not attempt to display the font when the area is too small like in the light grey rectangle below. How do I achieve this?
Creating a treemap with labels that disappear when area is too small
1 Like
Hey,
You can do it in two ways:
- Create a formula measure returning this percentage column for a certain range and return nothing beyond that range. Next if you adjust the rectangle label to show this new formula measure, the label texts will show nothing for the values in that range because there is no data to show:
- Create States for the percentage measure column for the range you want to show label texts for. Edit the state and add the percentage column as rectangle label texts. Next, remove all rectangle labels in the treemap’s Text tab. That way, numbers defined in states will show label text, otherwise not. You can remove the rectangle background color from state style to preserve the auto color rule.
2 Likes