Hi,
I tried to set the min and max of Gauge from 80 and 120. Set the color ranges as "{“red”:[80,90],“yellow”:[90,110],“green”:[110,120]}. While the chart showed does not match what I set. Does anyone know how to fix it?
The chart showed as following:
The code as following:
# app layout
app.layout = html.Div([
html.Div(
children=daq.Gauge(
color={
"gradient": False,
"ranges": {"red":[80,90],"yellow":[90,110],"green":[110,120]},
},
scale={'start': 80, 'interval': 5, 'labelInterval': 2},
min=80,
max=120,
showCurrentValue=True,
units="Unit",
value=80,
),
style={
"textAlign": "center"
},
),
])