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/08/19 17:28:09 UTC

[GitHub] [echarts] AKokos commented on issue #15401: Adding datazoom causes the markarea color area to disappear when the scroll wheel zooms in。 (echart@4.9.0)

AKokos commented on issue #15401:
URL: https://github.com/apache/echarts/issues/15401#issuecomment-902104934


   Have the same problem - markArea disappears when both its coordinates are out of visible area
   Using version 5.1.2
   
   Example:
   ```
   {
           grid: {
             left: '34px',
             right: '0',
             top: '76px',
             bottom: '24px',
             show: true
           },
           xAxis: {
             min: 1500,
             max: 15000,
             type: 'value',
             splitNumber: 5
           },
           yAxis: {
             min: 0,
             max: 100,
             type: 'value',
             interval: 10
           },
           dataZoom: [{
             type: 'inside',
             filterMode: 'none'
           }, {
             type: 'slider',
             top: '24px',
             left: '0',
             start: 0,
             end: 100,
             filterMode: 'none'
           }],
           series: [{
             type: 'line',
             data: [[1600, 10], [14100, 40]],
             step: 'end',
             emphasis: {
               label: {
                 show: true
               }
             },
             markArea: {
               data: [
                 [{
                   coord: [1700, 80],
                   name: 'ddd',
                   itemStyle: {
                     color: '#ff000077'
                   }
                 }, {
                   coord: [10000, 60]
                 }],
                 [{
                   coord: [1700, 40],
                   name: 'sss',
                   itemStyle: {
                     color: '#00ff0077'
                   }
                 }, {
                   coord: [10000, 20]
                 }]
               ]
             }
           }]
         }


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