I am using plotly.js to plot graph in my web app. The modeBar is placed at top right corner by default. Is there any way I can place it at the top center?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
This should work:
.js-plotly-plot .plotly .modebar {
left: 50%;
transform: translateX(-50%);
}
回答2:
.js-plotly-plot .plotly .modebar{left: 40%}