有没有办法将自定义CSS添加到Plotly下拉按钮中?
我有以下这些:
但是当使用主题为plotly_dark的图形时,鼠标悬停时它们看起来像这样:
我看到了bgcolor、bordercolor、borderwidth等属性,但没有关于悬停样式的内容。有人能使其正常工作吗?
谢谢
...
updatemenus=[
dict(buttons=[
dict(
args=["type", "bar"],
label="Bar Chart",
method="restyle",
),
dict(
args=["type", "scatter"],
label="Line Chart",
method="restyle",
)
]
, direction="down"),
...
但是当使用主题为plotly_dark的图形时,鼠标悬停时它们看起来像这样:
![enter image description here](https://istack.dev59.com/KbYd4.webp)
谢谢