100pah commented 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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to