Bug 494513 - Text inside pie chart is clipped on smaller panels
Summary: Text inside pie chart is clipped on smaller panels
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Monitor widgets (show other bugs)
Version: 6.2.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-10-11 08:28 UTC by Miroslav Jarý
Modified: 2024-11-10 03:46 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Widget on 42px panel height (Plasma 6.2) (12.07 KB, image/png)
2024-10-11 08:28 UTC, Miroslav Jarý
Details
Widget on 44px panel height (Plasma 6.2) (10.91 KB, image/png)
2024-10-11 08:28 UTC, Miroslav Jarý
Details
Widget on 48px panel height (Plasma 6.2) (13.14 KB, image/png)
2024-10-11 08:28 UTC, Miroslav Jarý
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Jarý 2024-10-11 08:28:33 UTC
Created attachment 174675 [details]
Widget on 42px panel height (Plasma 6.2)

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
See attached pictures - on 42px height text inside a pie chart is highlighted as mentioned in resolution of bug 488863 (although not sure if the effect isn't overdone). On 44 - 48px text is clipped.

I think that the rounding which is done on smaller sizes is a neat solution and I would prefer it over the chart overflowing (so try first to fit the whole text, if not, round the numbers, and if it still does not fit, make text smaller/overflow it over the pie graph itself).

STEPS TO REPRODUCE
1. Set panel height to 44 - 48px.
2. Add "Total CPU Usage" widget

OBSERVED RESULT
The text inside the pie chart is clipped at the end (missing decimal numbers/units).

EXPECTED RESULT
Numbers in the graph will be rounded, or the text will be made smaller to fit the area.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.11.2-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × 13th Gen Intel® Core™ i5-13420H
Memory: 15,3 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: LENOVO
Product Name: 82XV
System Version: LOQ 15IRH8
Comment 1 Miroslav Jarý 2024-10-11 08:28:46 UTC
Created attachment 174676 [details]
Widget on 44px panel height (Plasma 6.2)
Comment 2 Miroslav Jarý 2024-10-11 08:28:58 UTC
Created attachment 174677 [details]
Widget on 48px panel height (Plasma 6.2)
Comment 3 Nate Graham 2024-10-11 17:51:32 UTC
Weird. I cannot reproduce the issue with those panel heights and a "Total CPU Use" widget. In fact your own screenshots shows that it's fine. Only the other two pie charts show the issue; seems you need a unit longer than "%" to encounter the bug. Which probably explains why I didn't notice it while testing the change that undoubtedly caused this issue.

How exactly did you make those widgets?
Comment 4 Bug Janitor Service 2024-10-26 03:46:55 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2024-11-10 03:46:52 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.