How can I change the hover labels into static labels?

Hey @wangyp1937,

you can add an additional scattergeo trace like such:

trace2 = go.Scattergeo(
       locations = df['code'],
       locationmode = 'USA-states',
       text = df['code'],
       mode = 'text') 

data = [trace1,trace2]