I’m trying to have a tooltip on a bar chart that displays 2 data points: the date and a count on that date. If I keep both points on one line, the text displays as expected:
fig5 = px.bar(x=[x[‘publish_date’] for x in doc_data], y=[x[‘document_count’] for x in doc_data])
fig5.update_traces(hovertemplate=’%{y} Documents :: %{x}’)
But when I insert a line break, the text is dimmed:
fig5 = px.bar(x=[x[‘publish_date’] for x in doc_data], y=[x[‘document_count’] for x in doc_data])
fig5.update_traces(hovertemplate=’%{y} Documents <br>%{x}’)
Any ideas on how to fix this?