解决echarts图表宽度不够字符被覆盖问题

 在项目中用到了echart图表展示数据,结果左侧文字被遮盖如果加大宽度又会溢出界面,所以需要调整echarts的位置

调整他的左右两侧的边距,使他能够位于合适的位置。

.mychart: {   //其中mychart是我自己设置的class属性
left: '3%',

right: '4%',

bottom: '3%',

containLabel: true

},

修改之后的效果:

 参考链接:https://blog.csdn.net/weixin_34711401/article/details/112950515?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-0.control&spm=1001.2101.3001.4242

原文地址:https://www.cnblogs.com/1gaoyu/p/15114138.html