Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬Register for the Oct 27 webinar.

Changing Color of Indicator Arrow (relative change)

I am working with plotly.js indicator visuals. They have an arrow pointing up or down depending on the difference between a regualar value and some relative value. By default the down arrow is red and the up arrow is green, as is the case with stock prices. Is there any way to make the up arrow red and the down arrow green?

You can add color for increasing or decreasing arrow

fig.add_trace(go.Indicator(
mode = “number+delta”,
value = 10,
delta = {‘reference’: 9, ‘increasing’: {‘color’: “red”},‘decreasing’: {‘color’: “green”}}
))