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 2018/09/07 15:55:23 UTC

[GitHub] 100pah edited a comment on issue #9029: 散点图部分散点被遮挡问题

100pah edited a comment on issue #9029: 散点图部分散点被遮挡问题
URL: https://github.com/apache/incubator-echarts/issues/9029#issuecomment-419484285
 
 
   或许可以尝试这种方式?
   
   ```js
   var selectedData = [];
   
   myChart.setOption({
       // ...
       series: [{
           id: 'all'
           data: [ ... ]
       }, {
           id: 'selected',
           data: selectedData
           z: 1000
       }]
   };
   
   myChart.on('click', function (params) {
       if (selectedData.indexOf(params.dataIndex) < 0) {
           selectedData.push(params.value);
       })
       myChart.setOption({
           series: {
               id: 'selected',
               data: selectedData
           }
       })
   })
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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