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 2019/10/24 06:22:28 UTC

[GitHub] [incubator-echarts] realchoi opened a new issue #11474: 热力图(heatmap)如何自定义参数?How to use custom parameters in heatmap?

realchoi opened a new issue #11474: 热力图(heatmap)如何自定义参数?How to use custom parameters in heatmap?
URL: https://github.com/apache/incubator-echarts/issues/11474
 
 
   ### What problem does this feature solve?
   在热力图中点击某个区域时,希望能传递该区域的自定义参数,比如该区域的区划编号,以进行下一步操作。但是目前好像只能获取到点击的区域的名称(name)。
   
   When clicking on an area in the heatmap, it is hoped that the user-defined parameters of the area, such as the division number of the area, can be passed for the next operation. However, at present, it seems that only the name of the clicked area can be obtained.
   
   ### What does the proposed API look like?
   ``` js
   charts.on("click", function (params) {
           console.log(params);
           console.log(params.CUSTOMPARAMETER);    // 获取自定义参数 Gets the custom parameter named CUSTOMPARAMETER
   }
   ```
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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