Bug 491590 - Data range text flickers on Line Graph When Maximum Value Adjusts for "Automatic Y Data Range"
Summary: Data range text flickers on Line Graph When Maximum Value Adjusts for "Automa...
Status: CONFIRMED
Alias: None
Product: frameworks-kquickcharts
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 6.5.0
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Arjen Hiemstra
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-11 18:55 UTC by Eamonn Rea
Modified: 2024-08-12 19:24 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eamonn Rea 2024-08-11 18:55:09 UTC
SUMMARY
When using the "Automatic Y Data Range" option is enabled for Line Graphs, it will select a default range of values to display for the graph. For example with temperatures it might default to 0, 20, 35, 55, 75. If the value ranges adjust, such as when a temperature reaches higher than 75 and the values have to be adjusted, the text on the data range will flicker briefly while the graph is being redrawn.

If, again with the example of temperatures, the line graph is trending down, then there could be many flickers while the text adjusts back down (for example flickering from 75, to 74, 73, 72, 71, 70).

I did not test if higher refresh rates make a difference.

STEPS TO REPRODUCE
1. Have a Line Graph in System Monitor with an Automatic Data Range. A good one to reproduce this with is CPU temperature, or network usage (if there is a spike up in network usage from a few bytes to megabytes when downloading something), but it is not limited to these (the sensor doesn't make a difference, it's the graph itself, these sensors just happen to be good at reproducing it in my experience).
2. When the graph has to adjust, the Y value text will flicker.

OBSERVED RESULT
The text for the Y value of a Line Graph when "Automatic Y Data Range" is enabled will flicker when the graph adjusts. 

EXPECTED RESULT
The text should not flicker, as it is visually distracting, especially if the graph has to adjust down a lot if the maximum range for the incoming data is lower than the outgoing data.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.10.3-zen1-2-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XTX

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-08-12 19:24:27 UTC
Can reproduce.