Change hover text color

I have a line chart that looks like below
Stackoe
I would like to customise the color of the texts Show6 Show3 and Show4 and keep the color of the Numbers and the Speech bubble kind of thing as it is. Basically the text color should be different from the Line color .Is this possible?

Yup! you can customize the backgroundcolor, text color, and border color.

ref: https://plot.ly/python/reference/#layout-hoverlabel-bgcolor

In the layout, it would looks something like this:

layout = [
    hoverlabel = dict(
        bgcolor = ['red','#00FF00','rgb(252,141,89)'] #whatever format you want
    )

]

Thanks for the reply, it is actually changing the text color inside the speechbuble thing, i.e the numbers. But the Show4 color remains the same as marker color, below is the code

hoverlabel = dict(font=dict(color='red'))

Any help on this please

@rasika The text associated to each hoverbox is in fact the trace name. By default, the line_color/marker_color is inherited by the trace name color to help users identify each scatter trace by color. You can change only bgcolor and font_color.

Note that hoverlabel is a property not only for go.Layout, but of go.Scatter, too.

Just print(help(go.Scatter.hoverlabel) and try to set its keys. You’ll see that the trace name color is unchanged after each new value you assigned to a hoverlabel key.

I dont understand it, can you please give me a sample code

three reasons why you should buy plotly pro: support open source, get great support, host your plots and dashboards online