echarts x轴文字过多显示不全问题
解决方案:
换行
(this.barChart.getComponent(XAxis) as XAxis).axisLabel = {interval: 0, formatter(value) {
let ret = '';
const maxLength = 12; // 每项显示文字个数
const valLength = value.length;
const rowN = Math.ceil(valLength / maxL
原创
2022-05-07 11:50:51 ·
442 阅读 ·
0 评论