-
-
Notifications
You must be signed in to change notification settings - Fork 60
Add fileSize option #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I just published 5.4.0 where i changed UI of treemap a bit. I added notice to tooltip about what is a size and remove size from text labels of nodes. |
Thanks! However I see in the new version that the names increase in font-size to fill all the available space. This may often be confusing, since shorter names will appear bigger, even if the treemap block is smaller. It also confusingly creates a Word Cloud visualization effect with the names, which influences the perception of the sizes. |
Yep that seems true. My main idea was to reduce sizes to make sure it tries to fit the box instead of being cut on edge. I do not want to make and support tons of options, my preference is to have reasonable opinionated defaults. |
Updated to 5.4.1 it will center labels, but without font grow. |
Related: #96 (comment)
In my case, the library I'm using this plugin on gets tree-shaken, so the displayed filesizes don't match.
I would like an option to remove them completely both from the visualization and from the tooltip, since they may be confusing. Ideally only percentages would be displayed.
The option would be something like:
fileSize
(boolean, defaulttrue
) - Collect file size from source code and display it in the chart.The text was updated successfully, but these errors were encountered: