Layout:
Layout({
'autosize': True,
'barmode': 'stack',
'height': 550.0,
'legend': {'orientation': 'v', 'traceorder': 'normal'},
'title': {'font': {'color': '#010000'},
'text': 'Installed capacity in Portugal (source ENTSOE)',
'x': 0.5,
'xanchor': 'center'},
'width': 700.0,
'xaxis': {'range': [None, None]},
'yaxis': {'hoverformat': '.2f',
'rangemode': 'tozero',
'showexponent': 'none',
'tickformat': '.4r',
'title': {'text': 'Capacity (GW)'}}
})
Traces:
(Only min and max for x and y)
[Bar({
'marker': {'color': 'rgba(21, 86, 105, 0.7)'},
'name': 'Marine',
'opacity': 1,
'showlegend': True,
'visible': True,
'x': [2015-01-01 00:00:00+01:00, 2025-01-01 00:00:00+01:00],
'y': [0.0, 0.0]
}),
Bar({
'marker': {'color': 'rgba(11, 166, 130, 0.7)'},
'name': 'Wind Offshore',
'opacity': 1,
'showlegend': True,
'visible': True,
'x': [2015-01-01 00:00:00+01:00, 2025-01-01 00:00:00+01:00],
'y': [0.0, 0.025]
}),
Bar({
'marker': {'color': 'rgba(150, 150, 150, 0.7)'},
'name': 'Other',
'opacity': 1,
'showlegend': True,
'visible': True,
'x': [2015-01-01 00:00:00+01:00, 2025-01-01 00:00:00+01:00],
'y': [0.008, 0.167]
}),
Bar({
'marker': {'color': 'rgba(21, 105, 86, 0.7)'},
'name': 'Biomass',
'opacity': 1,
'showlegend': True,
'visible': True,
'x': [2015-01-01 00:00:00+01:00, 2025-01-01 00:00:00+01:00],
'y': [0.582, 0.687]
}),
Bar({
'marker': {'color': 'rgba(38, 114, 176, 0.7)'},
'name': 'Hydro Run-of-river and poundage',
'opacity': 1,
'showlegend': True,
'visible': True,
'x': [2015-01-01 00:00:00+01:00, 2025-01-01 00:00:00+01:00],
'y': [2.834, 2.987]
}),
Bar({
'marker': {'color': 'rgba(237, 72, 53, 0.7)'},
'name': 'Fossil Gas',
'opacity': 1,
'showlegend': True,
'visible': True,
'x': [2015-01-01 00:00:00+01:00, 2025-01-01 00:00:00+01:00],
'y': [4.4190000000000005, 4.719]
}),
Bar({
'marker': {'color': 'rgba(133, 184, 226, 0.7)'},
'name': 'Hydro Water Reservoir',
'opacity': 1,
'showlegend': True,
'visible': True,
'x': [2015-01-01 00:00:00+01:00, 2025-01-01 00:00:00+01:00],
'y': [1.436, 1.7890000000000001]
}),
Bar({
'marker': {'color': 'rgba(115, 204, 183, 0.7)'},
'name': 'Wind Onshore',
'opacity': 1,
'showlegend': True,
'visible': True,
'x': [2015-01-01 00:00:00+01:00, 2025-01-01 00:00:00+01:00],
'y': [4.486, 5.3660000000000005]
}),
Scatter({
'hoverinfo': 'all',
'line': {'color': '#C70039', 'dash': 'solid'},
'name': 'Max Load',
'opacity': 1,
'showlegend': True,
'visible': True,
'x': [2014-01-01 01:00:00+01:00, 2025-01-01 01:00:00+01:00],
'y': [7.993, 9.833]
}),
Bar({
'marker': {'color': 'rgba(14, 66, 105, 0.7)'},
'name': 'Hydro Pumped Storage',
'opacity': 1,
'showlegend': True,
'visible': True,
'x': [2015-01-01 00:00:00+01:00, 2025-01-01 00:00:00+01:00],
'y': [1.245, 3.7070000000000003]
}),
Bar({
'marker': {'color': 'rgba(214, 107, 12, 0.7)'},
'name': 'Solar',
'opacity': 1,
'showlegend': True,
'visible': True,
'x': [2015-01-01 00:00:00+01:00, 2025-01-01 00:00:00+01:00],
'y': [0.221, 2.589]
}),
Bar({
'marker': {'color': 'rgba(166, 136, 51, 0.7)'},
'name': 'Fossil Hard coal',
'opacity': 1,
'showlegend': True,
'visible': True,
'x': [2015-01-01 00:00:00+01:00, 2025-01-01 00:00:00+01:00],
'y': [0.0, 1.756]
}),
Scatter({
'hoverinfo': 'all',
'line': {'color': '#000205', 'dash': 'solid'},
'name': 'Average Load',
'opacity': 1,
'showlegend': True,
'visible': True,
'x': [2014-01-01 00:00:00+01:00, 2025-01-01 00:00:00+01:00],
'y': [5.556588000910747, 6.206974917491749]
})]