Skip to content
Advertisement

Plotly Text Annotation shows the same text throughout

I am trying to show the text on the bars based on some filtered data but the text shows the same value for the last item in the list. I can’t seem to find out what the issue is because display_texts itself gives me what I expect

JavaScript

enter image description here

Advertisement

Answer

You should remove texttemplate=display_texts and add text=display_texts to px.bar.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement