简体   繁体   English

在高图表中询问图例选项

[英]Asking the legend option in high charts

I want the legend bottom centre whenever I give the width: '100%' the legend is coming left side I want to keep in middle.每当我给出宽度时,我都希望图例底部居中:'100%' 图例出现在我想保持在中间的左侧。

example code:示例代码:

legend:{ backgroundColor: 'rgba(255,255,255)', Width: '100%', },图例:{ backgroundColor: 'rgba(255,255,255)', 宽度: '100%', },

You can use flex or grid properties, it's make easier if you want the element to center.您可以使用 flex 或 grid 属性,如果您希望元素居中会更容易。

legend:{ backgroundColor: 'rgba(255,255,255)',display: "grid", placeItems: "center" }

And place add some more info if you not want that answer.如果您不想要那个答案,请添加更多信息。 That help other to understand what problem really is这有助于其他人了解真正的问题是什么

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM