Open markushal opened 9 months ago
Hi @wingechr,
in order to render a sankey diagram as shown above, we would need to get data from different steps of the chain within api_calc.py
. The data ideally has the following form:
{'node': ['RES-GEN',
'ELY',
'DERIV',
'TRANSPORT_PRE',
'TRANSPORT',
'TRANSPORT_POST',
'OUTPUT',
'LOSSES',
'WATER',
'HEAT',
'CO2',
'BUNKER_FUEL',
'DAC',
'DESAL'],
'source': [0, 1, 2, 3, 4, 5, 13, 8, 2, 2, 12, 10, 0, 11],
'target': [1, 2, 3, 4, 5, 6, 8, 1, 8, 9, 10, 2, 12, 4],
'value': [6, 5, 4, 3, 2, 1, 0.5, 1, 0.5, 1, 1, 1, 1, 1]}
@markushal what do you want to show as "value"? At the moment only the cost of each step is calculated.
I think it would take a lot of time to add this feature.
@markushal what do you want to show as "value"? At the moment only the cost of each step is calculated.
I would like to show the energy flows, I think they are stored in parameter "FLOW".
I think it would take a lot of time to add this feature.
It would be a cool feature and add value to the app, but it has low priority. We did not promise it to Agora.