Bug 514223

Summary: Allow Line Chart widget to hide trailing zeros in Y-axis when value is an integer to save space
Product: [Plasma] plasmashell Reporter: Lukas <lukasan>
Component: System Monitor widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: ahiemstra, kdedev, lukasan, notmart
Priority: NOR    
Version First Reported In: 6.5.4   
Target Milestone: 1.0   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: My setup with obvious zeros taking up space

Description Lukas 2026-01-06 10:21:41 UTC
Created attachment 188263 [details]
My setup with obvious zeros taking up space

SUMMARY
The Line Chart widget displays unnecessary trailing zeros. For example, memory and Network usage (e.g., "5.00 GB" instead of "5 GB"). I suggest truncating these zeros for a cleaner UI. See attached screenshot.

STEPS TO REPRODUCE
1. Add system monitor widget to desktop
2. Set "Display Style" to "Line Chart"
3. Add "Used Physical Memory (B) in Sensors Details
4. In "Line Chart Details" uncheck "Automatic Y data range" and set "To (Y)" to 8 GiB.

OBSERVED RESULT
The monitor will show the Y axis sizes as
8.0 GiB
6.0 GiB
4.0 GiB
2.0 GiB
0 B

EXPECTED RESULT
8 GiB
6 GiB
4 GiB
2 GiB
0 B

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)

Operating System: Manjaro Linux 
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
Kernel Version: 6.17.13-1-MANJARO (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
This is worse with internet usage amount, because it is in MiB/s which takes up more space.
Comment 1 TraceyC 2026-01-13 20:45:36 UTC
This may have been done so all the numbers align, which makes them easier to read
There might be a setting / toggle that could be added