-
-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graph meter style with negative values #1390
Comments
My questions:
|
Yes. Added to the list of supported modes if sensible based on #1387.
For two-item meters the first value is plottet upwards, the second downwards. This would typically be the RX (read) direction for the top and TX (write) for the bottom part of the graph.
The total value is just the same in the two-value case: Simply think of having one value report the RX and the second value report the TX as positive values as normal. The total would be RX+TX as usual. Stacking negative values doesn't normally make sense in the first place. For rendering the graph think of it basically like drawing both graphs individually at half height, but mirroring the second graph vertically. If you use the one-value case to draw negative values, then it's basically a graph of that value, except that things aren't cut off at the zero line. Regarding the four constraints:
|
Okay. It makes sense to make the new graph a separate mode. The user would have the choice to display RX+TX as stacked bars or separate.
The logarithm scale would be outside the scope of this feature. While I can see the logarithm scale be useful in some use cases, the log scale can contradict some of the goals I want to achieve with the "two quadrant" graph, specifically:
|
This thread is for discussion of a new graph style proposal, originally presented by @BenBE in #1387.
I would personally call this as "two quadrant" graph display. While I am happy to extend my code in #714 (which display colored, stacked graphs) to cover this display style, I still have doubts about the scope and constraints of it. Rather than jump in and implement it right away, I would like more discussions on this feature in order to make the vision clearer. (Hence this thread.)
If I were to implement the feature, I would make the following constraints:
total
is not fixed. E.g.1M
would mean 2^20 and not 10^6. (There would be no base-10 scales due to data structure limitations, sorry.)MeterClass.maxItems < 2
) may be displayed in this mode. There can't be items stacked on either side (upper or lower) as the "stacked" color data structure in Dynamic scaling & Graph meter coloring (new) #714 is not compatible with the new style, i.e. when item stacking happens on both sides.The text was updated successfully, but these errors were encountered: