I would like to have the darkblue bar to start at 0, to be able to use it for negative and positive values.
Currently I don’t see how I could define that, judging by the reference. https://plotly.com/python/reference/indicator/ https://plotly.com/python/bullet-charts/
import plotly.graph_objects as go
fig = go.Figure(go.Indicator(
mode = "number+gauge+delta", value = 10,
domain = {'x': [0, 1], 'y': [0, 1]},
delta = {'reference': 10, 'position': "top"},
title = {'text':"<b>Gearing</b><br><span style='color: gray; font-size:0.8em'>Finanical<br>Stability</span>", 'font': {"size": 14}},
gauge = {
'shape': "angular",
'axis': {'range': [-100, 100]},
'threshold': {
'line': {'color': "red", 'width': 2},
'thickness': 0.75, 'value': 70},
'bgcolor': "white",
'steps': [
{'range': [-100, 100], 'color': "cyan"},
{'range': [-50, 50], 'color': "royalblue"}],
'bar': {'color': "darkblue"}}))
fig.update_layout(height = 250)
fig.show()
This is showing value=10
This is showing value=0
This is showing value=-40


