发布网友 发布时间:2022-04-28 20:48
共2个回答
懂视网 时间:2022-05-16 04:26
xAxis: { type: 'category', title:null, gridLineWidth: 1, lineColor: "#50ae93", labels: { style: { fontSize: '10px'}, formatter: function() {var labelVal = this.value;var reallyVal = labelVal;var lvl = labelVal.length;if(lvl > 8 && lvl <=16){ reallyVal = labelVal.substr(0,8)+"<br/>"+labelVal.substring(8,lvl); }else if(lvl > 16 && lvl <=24){ reallyVal = labelVal.substr(0,8)+"<br/>"+labelVal.substr(8,8)+"<br/>"+labelVal.substring(16,lvl); }else if(lvl > 24){ reallyVal = labelVal.substr(0,8)+"<br/>"+labelVal.substr(8,8)+"<br/>"+labelVal.substr(16,8)+"<br/>"+labelVal.substring(24,lvl); } return reallyVal; } }, categories:['测试2016到2017学年度测试2016到2017学年度测试2016到2017学年度','测试2016到2017学年度测试2016到2017学年度测试2016到2017学年度','测试2016到2017学年度测试2016到2017学年度测试2016到2017学年度'] },
热心网友 时间:2022-05-16 01:34
Highcharts