echart图表上的标注文字被隐藏了怎么办?

柱状图和折线图的话:调整grid里面的值。

例如,

grid: {
                            left: '8%',
                            right:'2%',
                            bottom: '0%',
                            containLabel: true,

 },调整left,right,top就能让隐去的文字显示出来

饼状图的话,在series里面,通过改变radius和center的大小值就可以调整大小

猜你喜欢

转载自blog.csdn.net/weixin_42204641/article/details/84480470