title: figure text label not working in line chart plotly python
body: <p>I am trying to create a line charts with text labels on the chart itself but it is not working. <strong>It is
  working perfectly fine in scatter plot with the text parameter which you can see below.</strong></p>
  <p>code -</p>
  <pre><code>import plotly.express as px
  
  fig = px.scatter(crime2,
                   x='murder',
                   y='burglary',
                   size='population',
                   text='state')  # add figure label
  fig.update_layout(xaxis_title='Murder Rate',
                    yaxis_title='Burglary Rate')
  fig.update_traces(marker=dict(color='red'))
  fig.show()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/bA7P7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bA7P7.png" alt="scatter plot with figure text labels" /></a></p>
  <p>But it's not working with line chart.
  code for line chart -</p>
  <pre><code>fig = px.line(covid_subset,
                x='date',
                y='total_cases',
                color='location',
                text='location'
  )
  fig.update_layout(title='Cumulative Confirmed covid-19 cases')
  fig.show()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/CbAVL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CbAVL.png" alt="line chart with text label" /></a></p>
  <p>As you can see instead of show the country label on the line chart only at one place it kept showing all over the line.</p>
  <p><strong>I might missing some parameter but I don't know what is it.</strong></p>
  <p><strong>This is what I am trying to do -</strong></p>
  <p><a href="https://i.stack.imgur.com/VicV2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VicV2.png" alt="covid line chart" /></a></p>