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?