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:06 UTC

[GitHub] [echarts] xiaolicui opened a new issue, #16913: [Bug] the dataIndex is not work when I give it a array in dispatchAction

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

   ### 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'
   // 基于准备好的dom,初始化echarts实例
       var myChart = echarts.init(document.getElementById('echart'));
       // 绘制图表
       myChart.setOption({
         title: {
           text: 'ECharts 入门示例'
         },
         tooltip: {},
         xAxis: {
           data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子'],
           type: 'category'
         },
         yAxis: {
           type: 'value'
         },
         series: [
           {
             selectedMode: false,
             select: {
               itemStyle: {
                 color: 'gray'
               }
             },
             name: '销量',
             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_


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


Re: [I] [Bug] the dataIndex is not work when I give it a array in dispatchAction [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #16913:
URL: https://github.com/apache/echarts/issues/16913#issuecomment-2067780645

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


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


Re: [I] [Bug] the dataIndex is not work when I give it a array in dispatchAction [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #16913: [Bug] the dataIndex is not work when I give it a array in dispatchAction
URL: https://github.com/apache/echarts/issues/16913


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


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

Posted by GitBox <gi...@apache.org>.
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


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

Posted by GitBox <gi...@apache.org>.
sugerGDev commented on issue #16913:
URL: https://github.com/apache/echarts/issues/16913#issuecomment-1104771627

   肯定期待所有的tooltip显示出来的,有些业务场景需要这样的功能,麻烦EChart能否支持 dataIndex array?


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


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

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #16913:
URL: https://github.com/apache/echarts/issues/16913#issuecomment-1103574866

   What is expected when you give multiple dataIndex? ECharts does not support multiple tooltips so only one data should be displayed in the tooltip in most cases.


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


Re: [I] [Bug] the dataIndex is not work when I give it a array in dispatchAction [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #16913:
URL: https://github.com/apache/echarts/issues/16913#issuecomment-2081182306

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


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