You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/04/18 06:19:16 UTC

[GitHub] [incubator-echarts] zzyper opened a new issue #10315: splitNumber 无用,数据展示不全

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org