使用plotly.js将modeBar置于顶部中心 [英] Place the modeBar at top center using plotly.js
本文介绍了使用plotly.js将modeBar置于顶部中心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用plotly.js在我的网络应用中绘制图表。默认情况下,modeBar位于右上角。有什么方法可以把它放在顶部中心吗?
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?
推荐答案
这应该有效:
.js-plotly-plot .plotly .modebar {
left: 50%;
transform: translateX(-50%);
}
这篇关于使用plotly.js将modeBar置于顶部中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文