fmal opened a new issue #2941: Handling click events on chart grid columns
URL: https://github.com/apache/incubator-echarts/issues/2941
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   #### 问题简述 (One-line summary)
   
   Is there any way to capture click events on chart columns? My goal is to 
create a chart with possibility to select individual columns by clicking on 
them.
   #### 版本及环境 (Version & Environment)
   - ECharts 版本 (ECharts version): 3.1.3
   - 浏览器类型和版本 (Browser version): Google Chrome 49.0.2623.110
   - 操作系统类型和版本 (OS Version): Windows 8
   #### 期望结果 (Expected behaviour)
   
   I would expect that  `chart.on('click', () => {
         console.log('click'); 
       });` captures click events on the entire chart. Or at least i would 
expect an option like `grid: { clickable: true }`.
   #### 可能哪里有问题 (What went wrong)
   
   `chart.on('click', () => {
         console.log('click'); 
       });` registers event only on chart components such as bars etc. 
   #### ECharts配置项 (ECharts option)
   
   <!-- 下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。
   最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing
   -->
   
   ``` javascript
   option = {
   
   }
   
   ```
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to