问题
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