I Want to add Annotation not hover

df1['Data_Count'] = df1.groupby('HIGH_WTEM_OBVP_NM')['HIGH_WTEM_OBVP_NM'].transform('size')

df1['Name_Count_Str'] = df1.apply(lambda row: f"{row['HIGH_WTEM_OBVP_NM']} ({row['Data_Count']})", axis=1)

# Plotlyλ₯Ό μ‚¬μš©ν•˜μ—¬ Mapbox 지도 μœ„μ— 데이터 μ‹œκ°ν™”
fig = px.scatter_mapbox(df1, 
                        lat='HIGH_WTEM_OBVP_LAT', 
                        lon='HIGH_WTEM_OBVP_LON', 
                        size='Data_Count',  # 각 κ΄€μΈ‘μ†Œμ—μ„œ 발령된 데이터 개수λ₯Ό 크기둜 지정
                        size_max=40,  # μ›μ˜ μ΅œλŒ€ 크기 μ„€μ •
                        hover_name='HIGH_WTEM_OBVP_NM', 
                        hover_data={'THDT_LWET_WTEM', 'THDT_TOP_WTEM', 'Data_Count'},
                        labels={'THDT_LWET_WTEM': 'μ΅œμ € μ˜¨λ„', 'Data_Count': '전체 속보 개수'},
                        text=df1['Name_Count_Str'],
                        color='THDT_LWET_WTEM',  # 평균 μ˜¨λ„μ— 따라 색상 ν‘œμ‹œ
                        color_continuous_scale='Inferno',  # 색상 μŠ€μΌ€μΌ μ„€μ • (Inferno)
                        opacity=0.02,  # μ›μ˜ 투λͺ…도 μ„€μ •
                        zoom=2)  # 초기 ν™•λŒ€ μˆ˜μ€€ μ„€μ •

# # Annotation μΆ”κ°€
# for idx, row in df1.iterrows():
#     annotation_text = f"<b>κ΄€μΈ‘μ†Œλͺ…:</b> {row['HIGH_WTEM_OBVP_NM']}<br>" \
#                       f"<b>μ΅œμ €μ˜¨λ„:</b> {row['THDT_LWET_WTEM']}Β°C<br>" \
#                       f"<b>전체 속보 개수:</b> {row['Data_Count']}"
#     fig.add_annotation(x=row['HIGH_WTEM_OBVP_LON'],  # 경도 μ„€μ •
#                        y=row['HIGH_WTEM_OBVP_LAT'],  # μœ„λ„ μ„€μ •
#                        text=row['Name_Count_Str'], 
#                        showarrow=False,
#                        font=dict(color='black', size=10))

# λ ˆμ΄μ•„μ›ƒ μ„€μ •
fig.update_layout(title='고온 주의보 κ΄€μΈ‘μ†Œ μœ„μΉ˜ 및 데이터 μ‹œκ°ν™”',
                  mapbox_style='carto-positron',
                  mapbox=dict(center=dict(lat=df1['HIGH_WTEM_OBVP_LAT'].mean(), 
                                          lon=df1['HIGH_WTEM_OBVP_LON'].mean()),  # 지도 쀑심 μ„€μ •
                              zoom=5))  # Mapbox μŠ€νƒ€μΌ μ„€μ •

# κ·Έλž˜ν”„ 좜λ ₯
fig.show()

I want to add Annotation each circle not hover

Hey @james9510 could you add some mor information? I’m not sure what you want to achieve.