Bug 424411

Summary: Line chart doesn't show data on full configured x scale
Product: [Plasma] plasmashell Reporter: Heinz Wiesinger <pprkut>
Component: System Monitor widgetsAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: kde, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.19.1   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot
Screen recording

Description Heinz Wiesinger 2020-07-19 12:28:44 UTC
Created attachment 130242 [details]
Screenshot

SUMMARY

I like to have a line-chart cpu usage monitor on my desktop, so I not only see CPU spikes happening right now, but also a couple seconds/minutes ago.

While the new widgets support specifying a custom x range to specify the timeframe for the data I want to look at, only the last couple data points are actually displayed, or at the very least it's not using the entire configured width on the x scale.

Same happens with the memory usage monitor.

STEPS TO REPRODUCE
1. Add "Total CPU use" widget to desktop
2. Switch "Display Style" to "Line chart"
3. Uncheck "Automatic X data range" and specify from 0 to 500.

OBSERVED RESULT

Chart only shows the last couple points on the right edge of the graph, but doesn't keep points for the entire configured X range.

EXPECTED RESULT

Keep data points for the full configured X range.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.19.1
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
Comment 1 David Redondo 2020-07-20 09:34:59 UTC
I cannot reproduce that. 500 is a really long time, after a while the graph is filled.
Comment 2 Heinz Wiesinger 2020-07-20 10:27:39 UTC
I have it running since yesterday, but it doesn't fill up for me. I see points disappearing after a while and all that remains is the flat line until the left edge of the graph, just like in the screenshot.
Comment 3 Heinz Wiesinger 2020-07-20 10:40:48 UTC
Created attachment 130276 [details]
Screen recording

Added a screen recording to show the behavior
Comment 4 Heinz Wiesinger 2021-01-10 10:38:36 UTC
I updated to plasma 5.20.5 and this is fixed now for me