gioneves opened a new issue, #20611:
URL: https://github.com/apache/echarts/issues/20611

   ### Version
   
   5.5.0
   
   ### Link to Minimal Reproduction
   
   
https://echarts.apache.org/examples/en/editor?code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANprrLkWxgCeIWxA5AOYCGAri1kwDRUUAxlmhhcxEkwDMABgCkfWEwCs8pgF1-1dDjYATCByJKAbGq3a9bMGwkAmGb1jKALE4DsADicBOO-oEAXwt0VG0aekYlEHw-AR19Q2MmMwUQoRExHAkmd3MlVQVNeMwsABssQTE9AFlgPSiwHA4sdPRsCqqsPQB5ADM-7DBiBzbYLABbEAALNgwIYzDw2AgxCYBlOgriJeXYQWAy4GzYACIAYgH3VRlTseoAI2OGnAB1CD0waeI3Esfn3AAYUOx2IFxkELufwoTxwLwAKpFmHpgGBqnE9u1ZiiAO4AITKHBOo2hWP0wBxwKOJwufUh0MCJWCJSsNgkUmUTmUJg8nNgPncAWojPQAUCAG4UCgJrRAbMcGAAHQwAAUTAmwCMk2AADceE4VSA2LoJhgAJQIAB8lHQED6sENxrYpsV2DwBAAktAGgAPBDwRAyWAAMmDsCNJowitZbC9vv9gYtu1gAHoU7BXscANYYWA48plAQyuXGpUGDBGsCCaYAQSqUGgKuT6DoDGY0wgLGmZU70zAGO0bvwGDjWB9xAAjGMY6Px6RHLB_EEzZKBGnYB6wLAUQRoEwtzjs3mC0XZfKywtK9W65BVc2Im2lB1Kv2xkPPd6x5Pp9ZY5-5yQC5LsKK7kIygSgdKZ6lsqjbqpq2Caq-DoRs65pWjaKz2o6kaurgw6zgmsBBqG4ZOi6M7_kRMhJmu6aZjgObHmUhbUMW57Rpe1jXvWd4lK2URMLi0AgGUbC0AO1DviO_7fiyv6zhIQFChQEGrtQ66btuwC7vueZHvmLGniWCqcRW3G1rxjb3gJzAcNAz5VJJFDSYpsBTvJNhuYBTjAapoHoOBK5AA
   
   ### Steps to Reproduce
   
           // events and actions - problem in select and unselect with 
dataIndex: number[]
           chartUse.on('mousemove', params => {
   
               if (params.seriesIndex === 0 && params.dataIndex === 0) {
   
                   // Works well
                   chartUse.dispatchAction({
                       type: 'highlight',
                       seriesIndex: 1,
                       dataIndex: [0, 2]
                   })
   
                   // It doesn't work well
                   chartUse.dispatchAction({
                       type: 'select',
                       seriesIndex: 1,
                       dataIndex: [0, 2]
                   })
   
               }
   
           })
   
           chartUse.on('mouseout', params => {
   
               if (params.seriesIndex === 0 && params.dataIndex === 0) {
   
                   // Works well
                   chartUse.dispatchAction({
                       type: 'downplay',
                       seriesIndex: 1,
                       dataIndex: [0, 2]
                   })
   
                   // It doesn't work well
                   chartUse.dispatchAction({
                       type: 'unselect',
                       seriesIndex: 1,
                       dataIndex: [0, 2]
                   })
   
               }
           
           })
   
   ### Current Behavior
   
   When using select or unselect with dataIndex as an array, no action is 
applied to the chart. The items specified in the array are not selected or 
unselected.
   
   In contrast, highlight and downplay work as expected with dataIndex as an 
array, applying the action to all specified items.
   
   ### Expected Behavior
   
   The select and unselect actions should work with dataIndex as an array, just 
like highlight and downplay. All specified items should be selected or 
unselected when passing multiple indices in the dataIndex array.
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


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

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to