You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/05/25 07:53:01 UTC

[GitHub] [incubator-echarts] yyccQQu commented on issue #6236: 能否自定义legend的选中事件

yyccQQu commented on issue #6236: 能否自定义legend的选中事件
URL: https://github.com/apache/incubator-echarts/issues/6236#issuecomment-495880750
 
 
   > 如何触发 ` legendselectchanged` 事件, 在我没有点击 `legend` 的情况下
   > 
   > -----分割线-------
   > 
   > ```
   > myChart.dispatchAction({
   >     type: 'legendToggleSelect',
   >     name: '上海 Top10'
   > });
   > ```
   
   myChart.on('legendselectchanged', function (param) {
                   var selectedName = param.name; 
                   console.log(selectedName, "selectedName",param);
   })

----------------------------------------------------------------
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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org