问题描述
根据官方文件,使用px可以将hover-info设置如下:
import plotly.express as px
df_2007 = px.data.gapminder().query("year==2007")
fig = px.scatter(df_2007,x="gdpPercap",y="lifeExp",log_x=True,hover_name="country",hover_data=["continent","pop"])
fig.show()
为了方便起见,我现在使用袖扣。例如:
df_2007.iplot(kind='scatter',...)
,但是hover_name和hover_data在这里不是有效的参数。有人可以告诉我如何计算吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)