You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/10/20 03:33:44 UTC

[GitHub] [echarts] NBYuanShao opened a new issue #15914: 移动端的datazoom

NBYuanShao opened a new issue #15914:
URL: https://github.com/apache/echarts/issues/15914


   ### Version
   5.2.1
   
   ### Reproduction link
   [https://echarts.apache.org/examples/zh/editor.html?c=line-tooltip-touch](https://echarts.apache.org/examples/zh/editor.html?c=line-tooltip-touch)
   
   ### Steps to reproduce
   let base =  new Date(2021, 10, 19);
   let oneDay = 24 * 3600 * 1000;
   let valueBase = Math.random() * 300;
   let valueBase2 = Math.random() * 50;
   let data = [];
   let data2 = [];
   for (var i = 1; i < 10; i  ) {
     var now = new Date((base  = oneDay));
     var dayStr = [now.getFullYear(), now.getMonth()   1, now.getDate()].join('-');
     valueBase = Math.round((Math.random() - 0.5) * 20   valueBase);
     valueBase <= 0 && (valueBase = Math.random() * 300);
     data.push([dayStr, valueBase]);
     valueBase2 = Math.round((Math.random() - 0.5) * 20   valueBase2);
     valueBase2 <= 0 && (valueBase2 = Math.random() * 50);
     data2.push([dayStr, valueBase2]);
   }
   option = {
     title: {
       left: 'center',
       text: 'Tootip and dataZoom on Mobile Device'
     },
     legend: {
       top: 'bottom',
       data: ['Intention']
     },
     tooltip: {
       triggerOn: 'none',
       position: function (pt) {
         return [pt[0], 130];
       }
     },
     toolbox: {
       left: 'center',
       itemSize: 25,
       top: 55,
       feature: {
         dataZoom: {
           yAxisIndex: 'none'
         },
         restore: {}
       }
     },
     xAxis: {
       type: 'time',
       axisPointer: {
         lineStyle: {
           width: 0
         }
       },
       splitLine: {
         show: false
       }
     },
     yAxis: {
       type: 'value',
       axisTick: {
         show: true,
         length: 1070,
         inside: true,
         lineStyle: {
           width: 0.2
         }
       },
       splitLine: {
         show: false
       },
       axisLabel: {
         inside: false,
         formatter: '{value}',
         color: 'red' //刻度线数值颜色
       },
       z: 10
     },
     grid: {
       top: 110,
       left: 15,
       right: 15,
       height: 160
     },
     dataZoom: [
       {
         type: 'inside',
         throttle: 50
       }
     ],
     series: [
       {
         name: 'Fake Data',
         type: 'line',
         smooth: true,
         symbol: 'none',
         sampling: 'average',
         itemStyle: {
           color: 'rgba(21, 129, 104, 1)'
         },
         stack: 'a',
         areaStyle: {
           color: 'rgba(21, 129, 104, 1)',
           shadowBlur: 5
         },
         data: data
       },
       {
         name: 'Fake Data',
         type: 'line',
         smooth: true,
         stack: 'a',
         symbol: 'none',
         sampling: 'average',
         itemStyle: {
           color: 'rgba(57, 141, 210, 1)'
         },
         areaStyle: {
           color: 'rgba(57, 141, 210, 1)',
           shadowBlur: 5
         },
         data: data2
       }
     ]
   };
   
   ### What is expected?
   axisLabel内的inside属性设置为false后,左侧刻度值正常显示
   
   ### What is actually happening?
   inside由true修改为false后数值为零
   
   <!-- 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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [echarts] echarts-bot[bot] commented on issue #15914: 移动端的datazoom

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15914:
URL: https://github.com/apache/echarts/issues/15914#issuecomment-947295747






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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [echarts] echarts-bot[bot] commented on issue #15914: 移动端的datazoom

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15914:
URL: https://github.com/apache/echarts/issues/15914#issuecomment-949427661


   @NBYuanShao Please provide a minimum reproducible demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM , https://www.makeapie.com/editor.html or https://codesandbox.io/s/mystifying-bash-2uthz.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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