echarts toolbox超出容器导致被截断
解决方案:
echarts的配置项中设置
toolbox{
right:’30%’ //看到有文章说默认时是auto,20%,
//稍微设置大一点即可,
//但我后来尝试小于20%时也可,
//可能是因为我同时设置了grid中的right吧,
//暂未考证,有待大家指正
}
至于上方被截断的那里,通过设置
grid{
top:50 //(按需要设置数值或比例即可,
//同样有bottom,left,right等的配置)
}
最终
虽然文字被遮挡了,但至少没有被截断了,最后再微调一下就ok啦
(参考文档)其他可能适用于你的一些解决方案:
https://blog.csdn.net/weixin_36128990/article/details/113031377
https://echarts.apache.org/v4/zh/option.html#series-pie.markLine
https://www.cnblogs.com/padding1015/p/9936533.html
https://blog.csdn.net/qq_42711864/article/details/86246508
https://segmentfault.com/q/1010000010939022?utm_source=sf-similar-question
https://segmentfault.com/q/1010000040214920
https://blog.csdn.net/weixin_40902181/article/details/113414979