Black Lives Matter. Please consider donating to Black Girls Code today.

Multiple text labels in a plotly express bar chart

I have 2 questions:

  1. Is it possible to have multiple text labels on a plotly express bar chart. I want one label to be the y-axis value which I can do with a text=‘field name’ input, however I want a second label below the first. Any way to do this?

  2. When I use plotly express to do a scatter plot (px.scatter) with lines (so a line chart essentially with points displayed), I can use the text=‘field name’ to show text labels on the chart. When I enter a color=‘field name’ in the px.scatter command, the labels go away. Can anyone help explain why and fix?