Matan
October 23, 2021, 12:58pm
1
Sorry for being so confusing in the header no idea how to write this question.
So I want to go from here:
To here:
While the text you’re seeing is just the text I wrote for the pink bar I will change it in the future to be the value of the pink bar.
Any idea how to do this?
iianmr
October 24, 2021, 6:43am
2
There may be a better way to do it, but my first thought was to add three annotations like this:
fig.add_annotation(y='monkeys', x=100, xanchor='right',
showarrow=False, align='left',
text='POP',font = {'color':'blue', 'size':12})
fig.add_annotation(y='orangutans', x=100, xanchor='right',
showarrow=False, align='left',
text='POP',font = {'color':'blue', 'size':12})
fig.add_annotation(y='giraffes', x=100, xanchor='right',
showarrow=False, align='left',
text='POP',font = {'color':'blue', 'size':12})
And change ‘POP’ to whatever you need to, obviously.
2 Likes
Matan
October 24, 2021, 1:51pm
3
Thanks that’s a great solution!
2 Likes