Place the modeBar at top center using plotly.js

给你一囗甜甜゛ 提交于 2019-12-12 11:29:18

问题


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%}


来源:https://stackoverflow.com/questions/45173726/place-the-modebar-at-top-center-using-plotly-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!