tevinch commented on issue #21744: URL: https://github.com/apache/echarts/issues/21744#issuecomment-5765855563
ECharts **6.1.0** already has a renderer guard for this: [`updateHoverLayerStatus`](https://github.com/apache/echarts/blob/6.1.0/src/core/echarts.ts#L2591-L2596) returns immediately when the renderer is not Canvas. For SVG on that release, there is no `dataCount + 45` buffer to calculate for this optimization. I compared the official npm 6.0.0 and 6.1.0 bundles in a Chrome regression harness, keeping SVG, `showSymbol: true`, all data points, and the default threshold of 3000. The 6.0.0 comparison reproduced the missing emphasis at 3,000 and 20,000 points. On 6.1.0, legend hover and restoration worked at 2,000, 3,000 and 20,000 points, including after legend hide/show, zooming, and a `setOption` data update. A two-series case with two axes, toolbox and slider also passed, and the axis tooltip remained usable. If your application can upgrade, try the [official 6.1.0 release](https://github.com/apache/echarts/releases/tag/6.1.0) with the threshold override removed. SVG still has the cost of drawing the symbols; these checks establish the interaction behavior, not a universal performance or memory guarantee. -- 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]
