zzyper opened a new issue #10316: splitNumber is unusefull,the data is 
incomplete
URL: https://github.com/apache/incubator-echarts/issues/10316
 
 
   **code :**
   ```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 },
               },
             ],
   ```
   
   **result preview: (lack 500 & 300)**
   
![image](https://user-images.githubusercontent.com/26628346/56340804-a549e800-61e5-11e9-8189-d4119cc3a9c2.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