zzyper opened a new issue #10317: splitNumber 无用,数据展示不全 URL: https://github.com/apache/incubator-echarts/issues/10317 ### Version 4.2.0-rc.2 ### Steps to reproduce ```js yAxis: [ { name: '包裹数(个)', nameTextStyle: { color: 'rgba(102, 102, 102, 0.647058823529412)', fontSize: '14', padding: [0, 0, 0, -80], }, nameGap: 30, type: 'value', splitNumber: 6, axisLabel: { textStyle: { color: 'rgba(102, 102, 102, 0.647058823529412)', fontSize: '14', }, formatter: function x(value, index) { const Yshat = [0, 50, 100, 200, 300, 400, 500]; return Yshat[index]; }, }, splitLine: { lineStyle: { type: 'dashed', color: '#e8e8e8', }, }, axisLine: { show: false }, axisTick: { show: false }, }, { name: '运费占比(%)', nameTextStyle: { color: 'rgba(102, 102, 102, 0.647058823529412)', fontSize: '14', padding: [0, -80, 0, 0], }, nameGap: 30, type: 'value', splitNumber: 6, axisLabel: { formatter: function x(value, index) { const Yshat = [0, 50, 100, 150, 200, 250, 300]; return `${Yshat[index]}%`; }, textStyle: { color: 'rgba(102, 102, 102, 0.647058823529412)', fontSize: '14', }, }, splitLine: { lineStyle: { type: 'dashed', color: '#e8e8e8', }, }, axisLine: { show: false }, axisTick: { show: false }, }, ], ``` ### What is expected? 图表y轴分6部分,最大值为 500 、 300 ### What is actually happening? y轴被分为5份,缺少最大值 <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
