Enable a non-linear network traffic option (click to toggle between linear and non-linear) #473

pull rebroad wants to merge 2 commits into bitcoin-core:master from rebroad:NonLinearTraffic changing 2 files +38 −17
  1. rebroad commented at 5:06 pm on November 15, 2021: contributor

    Helps to make visible the low bandwidth traffic and high bandwidth (or spikes) concurrently. (Previously the low bandwidth traffic becomes invisible in the presence of spikes).

    Old format: image

    New format: image

    Old format: image

    New format: image

    (clicking on the graph will toggle between the new format and the old format).

  2. katesalazar commented at 9:14 pm on November 15, 2021: contributor

    Love the idea, the problem with these things is there’s gonna be someone who is annoyed by the behavior change.

    When I do things like this, I always maintain the old behavior somehow, so that kind of reaction against gets suppressed more easily.

  3. laanwj commented at 10:28 am on November 16, 2021: member
    Concept ACK, this seems like a good idea to me, given that, what you really want to see in graphs like this is the gross magnitude and not so much very small variations in the throughput.
  4. rebroad force-pushed on Nov 19, 2021
  5. rebroad commented at 6:02 pm on November 19, 2021: contributor

    Love the idea, the problem with these things is there’s gonna be someone who is annoyed by the behavior change.

    When I do things like this, I always maintain the old behavior somehow, so that kind of reaction against gets suppressed more easily.

    I agree, which is why I’ve now (latest commit) made it toggleable - just click on the graph to switch between the two display options.

  6. rebroad renamed this:
    Change Network traffic graph to non-linear
    Enable a non-linear network traffic option (click to toggle between linear and non-linear)
    on Nov 19, 2021
  7. katesalazar commented at 9:34 pm on November 19, 2021: contributor

    Concept ACK.

    Love the idea, the problem with these things is there’s gonna be someone who is annoyed by the behavior change. When I do things like this, I always maintain the old behavior somehow, so that kind of reaction against gets suppressed more easily.

    I agree, which is why I’ve now (latest commit) made it toggleable - just click on the graph to switch between the two display options.

    Obscure, but OK.

  8. rebroad force-pushed on Nov 20, 2021
  9. rebroad force-pushed on Nov 20, 2021
  10. RandyMcMillan cross-referenced this on Nov 21, 2021 from issue Network Graph layout - debug window improvement. by RandyMcMillan
  11. in src/qt/trafficgraphwidget.cpp:72 in fe34ec30e1 outdated
    63         }
    64         path.lineTo(x, YMARGIN + h);
    65     }
    66 }
    67 
    68+void TrafficGraphWidget::mousePressEvent(QMouseEvent *event)
    


    jarolrod commented at 6:26 am on November 21, 2021:

    This isn’t a great UI decision for end users. This functionality is hidden from users. If they discover it, it would be by accident; after having clicked on the Network Traffic widget.

    Let’s make this feature more accessible and documented by adding two buttons next to the reset button: one that sets the existing format and another button that enables the new format introduced in this PR.

    The fToggle variable here should then be made into a persistent setting.

    Additionally, when a longer sampling period has been set with the slider; it can take a minute or longer for the format to switch. There are optimizations that need to be done. I have not investigated this.


    rebroad commented at 8:59 pm on November 24, 2021:

    @jarolrod What options are available so far for making GUI changes persistent? Regarding the delay when the slider is moved, I fixed that in a later update, and the delay now is no longer than the delay already present when clicking the reset button.

    What more obvious way might there be to reveal the Y axis is toggleable? A tooltip on the graph perhaps? I am reluctant to add extra buttons given the slider is already providing many values in so little space, so I do prefer the clicking on the graph to change it. It may be that someone finds it by accident, but then this could be a pleasant surprise that - an “easter egg” feature!


    katesalazar commented at 6:09 pm on November 25, 2021:

    @rebroad

    What more obvious way might there be to reveal the Y axis is toggle-able?

    Yes, button, of course! Checkbox, radio, all those are good.

    A tooltip on the graph perhaps?

    Improves from no tooltip, but no, that’s not enough improvement.

    I am reluctant to add extra buttons given the slider is already providing many values in so little space, so I do prefer the clicking on the graph to change it.

    What? No, that’s an huge slider. An unnecessarily large one. Sliders can be as small as necessary when they are combined with a text-box presenting the slided value. There’s a huge empty space below the legend too. There’s plenty of available space to discard invisible toggles.

    It may be that someone finds it by accident, but then this could be a pleasant surprise that - an “easter egg” feature!

    No, an easter egg is meant to be fun or charming in some way. Hiding actual feature in the same way like one could do with a true easter egg transgredes the principle of least surprise.

    Cheers!


    rebroad commented at 4:12 pm on November 28, 2021:
    @jarolrod The latest commit makes the update immediate now (using QWidget::update).
  12. jarolrod commented at 6:31 am on November 21, 2021: member
    concept ack
  13. rebroad force-pushed on Nov 21, 2021
  14. hebasto added the label Feature on Nov 21, 2021
  15. hebasto commented at 8:41 pm on November 21, 2021: member
    Concept ACK.
  16. rebroad force-pushed on Nov 24, 2021
  17. RandyMcMillan commented at 11:59 pm on November 27, 2021: contributor

    Concept ACK

    More useful information “at a glance”.

  18. RandyMcMillan commented at 0:00 am on November 28, 2021: contributor
    Adding a label to the highest horizontal line would be useful.
  19. rebroad force-pushed on Nov 28, 2021
  20. rebroad commented at 4:09 pm on November 28, 2021: contributor

    Adding a label to the highest horizontal line would be useful.

    I did consider this, but as it’s not the current functionality, and it would make the highest point on the graph no longer reach the top (as the label would need extra space) I decided against it. Could be done as a separate pull request though.

  21. rebroad force-pushed on Nov 28, 2021
  22. rebroad commented at 4:47 pm on December 6, 2021: contributor

    Adding a label to the highest horizontal line would be useful. @RandyMcMillan #492 also reduces the need for this as now you can point to a point on the graph to get details.

    e.g. (displays time in the same format as in the debug,log so also makes it easy to find the corresponding point in the log file).

  23. rebroad force-pushed on Dec 6, 2021
  24. Network Graph - Create y_value function 8864a1f790
  25. Enable non-linear network traffic graph ad431ff5d1
  26. rebroad force-pushed on Dec 6, 2021
  27. DrahtBot cross-referenced this on Dec 30, 2021 from issue Show ToolTip on Network Traffic graph by rebroad
  28. DrahtBot commented at 10:53 am on December 30, 2021: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Conflicts

    No conflicts as of last run.

  29. DrahtBot cross-referenced this on Jan 21, 2022 from issue Replace int with std::chrono in for the timer->setInterval() argument by shaavan
  30. DrahtBot cross-referenced this on Jan 27, 2022 from issue Scale network graph based on time interval by RandyMcMillan
  31. RandyMcMillan commented at 6:59 pm on January 28, 2022: contributor
  32. rebroad cross-referenced this on Feb 24, 2022 from issue Network graph improvements by rebroad
  33. hebasto commented at 3:58 pm on October 26, 2022: member
    Closing this as it has not had any activity in a while. If you are interested in continuing work on this, please leave a comment so that it can be reopened.
  34. hebasto closed this on Oct 26, 2022

  35. bitcoin-core locked this on Oct 26, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-22 03:20 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me