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/17 00:50:48 UTC

[GitHub] [echarts] singlemonkey opened a new issue #15890: visualMap和toolbox中的dataZoom配合使用时,dataZoom缩放可能导致曲线所有连线小时,只留下单独的数据点

singlemonkey opened a new issue #15890:
URL: https://github.com/apache/echarts/issues/15890


   ### Version
   5.0.2
   
   ### Steps to reproduce
   缩放时如果不包含最左边和最右边的数据,有时会出现曲线中断的情况。
   
   ### Code example
   ```
   option = {
     toolbox: {
       show: true,
       feature: {
         dataZoom: {
           filterMode: 'none',
           yAxisIndex: false
         }
       }
     },
     visualMap: [
       {
         type: 'piecewise',
         dimension: 0,
         seriesIndex: 0,
         pieces: [
           {
             state: '0',
             min: 1634370397000,
             max: 1634399141231,
             color: 'red'
           }
         ]
       }
     ],
     xAxis: {
       type: 'time'
     },
     yAxis: {
       type: 'value'
     },
     series: [
       {
         data: [
           {
             name: '2021-10-16 15:46:37',
             value: [1634370397000, 0.55]
           },
           {
             name: '2021-10-16 16:08:43',
             value: [1634371723000, 0.55]
           },
           {
             name: '2021-10-16 16:09:13',
             value: [1634371753000, 0.54]
           },
           {
             name: '2021-10-16 16:16:33',
             value: [1634372193000, 0.54]
           },
           {
             name: '2021-10-16 16:17:03',
             value: [1634372223000, 0.53]
           },
           {
             name: '2021-10-16 16:25:25',
             value: [1634372725000, 0.53]
           },
           {
             name: '2021-10-16 16:25:55',
             value: [1634372755000, 0.54]
           },
           {
             name: '2021-10-16 16:32:43',
             value: [1634373163000, 0.54]
           },
           {
             name: '2021-10-16 16:33:13',
             value: [1634373193000, 0.53]
           },
           {
             name: '2021-10-16 16:48:53',
             value: [1634374133000, 0.53]
           },
           {
             name: '2021-10-16 16:49:23',
             value: [1634374163000, 0.52]
           },
           {
             name: '2021-10-16 17:12:53',
             value: [1634375573000, 0.52]
           },
           {
             name: '2021-10-16 17:13:23',
             value: [1634375603000, 0.53]
           },
           {
             name: '2021-10-16 18:09:20',
             value: [1634378960000, 0.53]
           },
           {
             name: '2021-10-16 18:09:50',
             value: [1634378990000, 0.54]
           },
           {
             name: '2021-10-16 18:24:59',
             value: [1634379899000, 0.54]
           },
           {
             name: '2021-10-16 18:25:29',
             value: [1634379929000, 0.55]
           },
           {
             name: '2021-10-16 18:57:11',
             value: [1634381831000, 0.55]
           },
           {
             name: '2021-10-16 18:57:41',
             value: [1634381861000, 0.56]
           },
           {
             name: '2021-10-16 19:28:53',
             value: [1634383733000, 0.56]
           },
           {
             name: '2021-10-16 19:29:23',
             value: [1634383763000, 0.55]
           },
           {
             name: '2021-10-16 19:53:18',
             value: [1634385198000, 0.55]
           },
           {
             name: '2021-10-16 19:53:48',
             value: [1634385228000, 0.53]
           },
           {
             name: '2021-10-16 20:01:05',
             value: [1634385665000, 0.53]
           },
           {
             name: '2021-10-16 20:01:35',
             value: [1634385695000, 0.55]
           },
           {
             name: '2021-10-16 20:33:04',
             value: [1634387584000, 0.55]
           },
           {
             name: '2021-10-16 20:33:34',
             value: [1634387614000, 0.54]
           },
           {
             name: '2021-10-16 20:40:55',
             value: [1634388055000, 0.54]
           },
           {
             name: '2021-10-16 20:41:25',
             value: [1634388085000, 0.53]
           },
           {
             name: '2021-10-16 20:49:17',
             value: [1634388557000, 0.53]
           },
           {
             name: '2021-10-16 20:49:47',
             value: [1634388587000, 0.54]
           },
           {
             name: '2021-10-16 20:57:06',
             value: [1634389026000, 0.54]
           },
           {
             name: '2021-10-16 20:57:36',
             value: [1634389056000, 0.55]
           },
           {
             name: '2021-10-16 21:04:56',
             value: [1634389496000, 0.55]
           },
           {
             name: '2021-10-16 21:05:26',
             value: [1634389526000, 0.54]
           },
           {
             name: '2021-10-16 21:21:13',
             value: [1634390473000, 0.54]
           },
           {
             name: '2021-10-16 21:21:43',
             value: [1634390503000, 0.53]
           },
           {
             name: '2021-10-16 21:36:56',
             value: [1634391416000, 0.53]
           },
           {
             name: '2021-10-16 21:37:26',
             value: [1634391446000, 0.54]
           },
           {
             name: '2021-10-16 22:01:02',
             value: [1634392862000, 0.54]
           },
           {
             name: '2021-10-16 22:01:32',
             value: [1634392892000, 0.55]
           },
           {
             name: '2021-10-16 22:17:15',
             value: [1634393835000, 0.55]
           },
           {
             name: '2021-10-16 22:17:45',
             value: [1634393865000, 0.53]
           },
           {
             name: '2021-10-16 22:25:04',
             value: [1634394304000, 0.53]
           },
           {
             name: '2021-10-16 22:25:34',
             value: [1634394334000, 0.54]
           },
           {
             name: '2021-10-16 22:49:06',
             value: [1634395746000, 0.54]
           },
           {
             name: '2021-10-16 22:49:36',
             value: [1634395776000, 0.53]
           },
           {
             name: '2021-10-16 23:45:11',
             value: [1634399111231, 0.53]
           },
           {
             name: '2021-10-16 23:45:41',
             value: [1634399141231, 0.53]
           }
         ],
         type: 'line',
         smooth: true
       }
     ]
   };
   
   ```
   
   ### What is expected?
   维持连接状态
   
   ### What is actually happening?
   连线中断
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. 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] helgasoft commented on issue #15890: visualMap和toolbox中的dataZoom配合使用时,dataZoom缩放可能导致曲线所有连线小时,只留下单独的数据点

Posted by GitBox <gi...@apache.org>.
helgasoft commented on issue #15890:
URL: https://github.com/apache/echarts/issues/15890#issuecomment-947381613


   Have you tried without the _pieces_ attribute and setting _min_/_max_ under **visualMap** (not under _pieces_) ?
   Looks better to me and the line does not interrupt on zoom.
   ```
     visualMap: [
       { 
         type: 'piecewise', 
         dimension: 0,
         seriesIndex: 0,
         min: 1634370397000,
         max: 1634399141231,
         // pieces:  removed
       }
     ]
   ```
   ![image](https://user-images.githubusercontent.com/13038071/138042963-1c55cd41-1c97-41c9-a508-a6e92e8bef5a.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.

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 #15890: visualMap和toolbox中的dataZoom配合使用时,dataZoom缩放可能导致曲线所有连线小时,只留下单独的数据点

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






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