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 2022/04/19 09:58:08 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #16913: [Bug] the dataIndex is not work when I give it a array in dispatchAction

echarts-bot[bot] commented on issue #16913:
URL: https://github.com/apache/echarts/issues/16913#issuecomment-1102428913

   @xiaolicui It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **BODY**
   
   ### Version
   
   5.3.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   that is what I code:
   
     <div style="width: 500px; height: 300px" id="echart">
     </div>
   
   import * as echarts from 'echarts'
   // Based on the prepared dom, initialize the echarts instance
       var myChart = echarts.init(document.getElementById('echart'));
       // draw the graph
       myChart.setOption({
         title: {
           text: 'ECharts Getting Started Example'
         },
         tooltip: {},
         xAxis: {
           data: ['shirt', 'cardigan', 'chiffon shirt', 'trousers', 'high heels', 'socks'],
           type: 'category'
         },
         yAxis: {
           type: 'value'
         },
         series: [
           {
             selectedMode: false,
             select: {
               itemStyle: {
                 color: 'gray'
               }
             },
             name: 'Sales',
             type: 'bar',
             data: [5, 20, 36, 10, 10, 20]
           }
         ]
       });
       myChart.on('click', function() {
         myChart.dispatchAction({
           type: 'showTip',
           seriesIndex: 0,
           dataIndex: [1, 2, 3]
         })
       });
   
   ### Current Behavior
   
   when I click the chart , only the last item work in the dataIndex array
   
   ### Expected Behavior
   
   all the item work in that dataIndex array
   
   ### Environment
   
   ````markdown
   - OS:
   - Browser:
   - Framework:
   ````
   
   
   ### Any additional comments?
   
   _No response_
   </details>


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