gbrian commented on issue #8694: How to highlight selected data point. URL: https://github.com/apache/incubator-echarts/issues/8694#issuecomment-522036600 In my case to get the effect above, I'm using **itemStyle.opacity** I'm storing local "state" on each series point to know if it's selected. Then applying the style based on the "selected" state. So more or less: ``` var series = this.chartOption.series; var clickSeries = series[event.seriesIndex].data; var entry = clickSeries[ev.dataIndex]; entry.clicked = !entry.clicked; var any = clickSeries.filter(d => d.clicked).length !== 0; series.map(d => d.itemStyle.opcacity = !any || d.clicked ? 1: 0.3); echart.setOption({series}); ```
---------------------------------------------------------------- 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: dev-unsubscr...@echarts.apache.org For additional commands, e-mail: dev-h...@echarts.apache.org