Bug 440433

Summary: Legend truncation rules truncate the distinguishing words when sensors are from different groups
Product: [Applications] plasma-systemmonitor Reporter: Syfer Polski <syferpl>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: ahiemstra, nate, plasma-bugs-null
Priority: NOR Keywords: usability
Version First Reported In: 5.22.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: Plasma 5.23
Sentry Crash Report:
Attachments: Screenshot of issue

Description Syfer Polski 2021-07-30 20:11:56 UTC
Created attachment 140417 [details]
Screenshot of issue

SUMMARY
When multiple items are being compared and the space to display the legend is limited, the truncation should be to the most generic element, ie. Ram, Swap, GPU1, GPU2, instead of the most specific element(Used). This is because the same property of most items is far more likely to be displayed together, whether it's to compare the frequencies of different CPU cores or memory usage of different components.

STEPS TO REPRODUCE
1. Have two GPUs and some swap
2. Add the used RAM measurement of both GPUs to the memory row of the History tab
3. Observe the legend

OBSERVED RESULT
Legend will be(see attached screenshot): 
"Used X.Y GiB  Used Z.A GiB  Used B.C GiB  Used D.E GiB"

EXPECTED RESULT
"Ram X.Y GiB  Swap Z.A GiB   GPU1 B.C GiB  GPU2 D.E GiB"

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: openSuse Tumbleweed
(available in About System)
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-08-02 20:11:59 UTC
lol yeah. However imagine with a different type of graph where you had:

RAM Used X.Y GiB
RAM Free Y.Z GiB

In this case you would prefer the truncation to be:

Used X.Y GiB
Free Y.Z GiB

Rather than:

RAM X.Y GiB
RAM Y.Z GiB

I suppose it would need to gain the intelligence to see whether there are other sensors in the same group, or if the sensors are all in different groups.
Comment 2 Arjen Hiemstra 2021-08-06 10:51:38 UTC
As Nate said, this is impossible to resolve since solving one case breaks another. That said, we have a new for Plasma 5.23 where you can change the displayed labels. This requires a bit of manual work, but will allow you to change what is displayed to whatever you prefer.