ha-sankey-chart
ha-sankey-chart copied to clipboard
Connections accross sections
Or ability to skip a section. Could be implemented with ghost boxes in between.
Also mentioned in #6
I've been waiting for this one but cannot work out how to do it. I am currently fudging it with the dirty hack of including an entity twice in different sections and making it a child of itself. If I remove the intermediary entity I now get an orphan entity that is not connected to anything.
Is there something I need to put in between to achieve the "passthrough" I can see in the code? Could you update the docs with an example? Thanks
This is exactly how it works. It just auto adds child entities in the intermediary sections to connect the curve. The 'passthrough' type enables special rendering for those. Same rules about state apply though. If for some reason you don't get the intermediaries, you can try to keep yours and just add type: passthrough
to them. This would even allow you to position them manually.
I haven't had time to properly explain this in the README.
Here is a screenshot of a weird test I have
Thanks, it is working now. I suspect it may have been a browser cache issue not picking up the new code. I found that keeping the entity, setting type: passthrough
, and connecting to itself as a child works best as I can control the order and colour of the branches.
Updated README
Is it just me or does the combination of child/parent state not work with passthrough?
@icefest It should. I've used it with passthrough before. Maybe there is some sort of regression. Feel free to open a bug report