Stacked surface areas on y-axis #380
fpdragon
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
... has done the trick. Here is my solution:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a diagram with different power consumptions and it shows up correctly as different lines in one graph.
However, what I am trying to get is a stacket surface graph that each device consumption is stacked up to that one before.
In the end, the maximum value shall be the sum of all devices.
Here is what I currently have:
I found that there is this attribute called
stackgroup
in some plotly examples.Given to this example
it should do the trick as shown:
![image](https://private-user-images.githubusercontent.com/5647062/307753576-1df21609-2d47-4878-b0bd-06af1a9fb918.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTY2ODksIm5iZiI6MTczOTYxNjM4OSwicGF0aCI6Ii81NjQ3MDYyLzMwNzc1MzU3Ni0xZGYyMTYwOS0yZDQ3LTQ4NzgtYjBiZC0wNmFmMWE5ZmI5MTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMTA0NjI5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjhmM2ZlMDAzMzljZmFlMmRlZmRlYzJhYjM5MDc5ZDk3ZTBhMmViNTRhZDU1MGZhNWU3Y2IwZjIyNzc4YTIyZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.7ni3sDTCpy2EYaKknvcJ5BZz4plIXqlYiAxvUzSYfIA)
However I was not able to adopt this to my code.
I changed for example:
And the lines are changing to be shown with a surface below.
However, "Konvektoren" is not added on top of "Wärmepumpe" which would be the behavior I am wishing. "Konvektoren" is still measured from the 0 of the y axis.
So it seems that the signal word "stackgroup" is known but the two entitys may have no relationship to each othe? I don't know.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions