jihea-park opened a new issue, #20881: URL: https://github.com/apache/echarts/issues/20881
### Version 5.6.0 ### Link to Minimal Reproduction . ### Steps to Reproduce I use heatmap of Echarts with `echarts-for-react`. ### Current Behavior Maybe it is related to https://github.com/apache/echarts/issues/18086 I use [email protected], [email protected]. When I setSate on mouseevents, the visualMap reset. ``` const option: EChartsOption = { ... visualMap: [ { min: 0, max: maxSuccessCount, calculable: true, seriesIndex: 0, orient: 'horizontal', itemHeight: (containerSize.width || 100) * 0.3, right: '45%', bottom: '4%', hoverLink: false, formatter: (value) => { if (value === setting.yMax) { return ''; } return Math.floor(Number(value)).toLocaleString(); }, inRange: { color: ['#ffffff', HeatmapColor.success], }, }, ] ... } return ( <ReactEChartsCore ref={ref} echarts={echarts} option={option} style={{ height: '100%', width: '100%', minHeight: 500 }} onEvents={{ mousedown: (params: any, echartsInstance: ECharts) => { console.log('mousedown', params); const newSet = new Set(selectedCells); newSet.add(`${params.value[0]}-${params.value[1]}`); setSelectedCells(newSet); }, .... ); ``` Even if I setState, I would like the visualMap to remain as I set it. I tried `dispatchAction`, but It didn't work. (the code is on onEvents.mousedown function) ``` echartsInstance.dispatchAction({ type: 'selectDataRange', visualMapIndex: 0, selected: [10000, 3000], }); ``` Please help me..  ### Expected Behavior . ### Environment ```markdown - OS: - Browser: - Framework: ``` ### Any additional comments? _No response_ -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
