Bug 424411 - Line chart doesn't show data on full configured x scale
Summary: Line chart doesn't show data on full configured x scale
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Monitor widgets (show other bugs)
Version: 5.19.1
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-19 12:28 UTC by Heinz Wiesinger
Modified: 2021-01-10 10:38 UTC (History)
2 users (show)

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


Attachments
Screenshot (159.57 KB, image/png)
2020-07-19 12:28 UTC, Heinz Wiesinger
Details
Screen recording (2.60 MB, video/x-matroska)
2020-07-20 10:40 UTC, Heinz Wiesinger
Details

Note You need to log in before you can comment on or make changes to this bug.
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