zzyper opened a new issue #10315: splitNumber 无用,数据展示不全
URL: https://github.com/apache/incubator-echarts/issues/10315
 
 
   ```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 },
               },
             ],
   ```
   
   
![image](https://user-images.githubusercontent.com/26628346/56340587-e8f02200-61e4-11e9-9e0c-c1334fcf6c1e.png)
   

----------------------------------------------------------------
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]

Reply via email to