god-david commented on issue #5764: echarts3 的雷达图在触发click 事件后,获得的 params 中 无法获取 indicator 信息(同#4462) URL: https://github.com/apache/incubator-echarts/issues/5764#issuecomment-511308308 dataIndex的不同值只有图表事件里才有. 点击雷达图表, 对应相应的dataIndex. indicator中的name相应的索引至今没有解决, 一直是默认的0, 所有小伙伴如果想要通过点击indicator中的name实现跳转的, 目测只能通过对name值的比对才可以, 类似如: ` // 增加 indictor name 点击事件 chart1.on('click', function (params) { console.log("name: ",params.name) if (params.name == "上海") { window.open("#上海") } else if(params.name == "广东") { window.open("#广东") } `
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
