YaTaUser commented on issue #21565: URL: https://github.com/apache/echarts/issues/21565#issuecomment-4180412902
Thanks for the hint! Didn't expect such a configuration to exist. `filterMode: 'none'` indeed works for this simple example. In my real-world application it totally messes up zooming. For example, y-axis then zooms to all available data, even to data points far outside the visible range. Also, candlesticks then all draw as a thin line, even when they draw > 10 px thick in other filter modes (~3500 candles total, view 800 px wide, 35 candles visible). Filter modes `'filter'`, `'weakFilter'`: <img width="800" height="385" alt="Image" src="https://github.com/user-attachments/assets/aae20581-cc12-42c4-a5fc-f2ef48bc7066" /> Filter modes `'empty'`, `'none'`: <img width="800" height="385" alt="Image" src="https://github.com/user-attachments/assets/563a7f88-5bff-41c9-ad20-436f7adf5899" /> ---- It looks like ECharts uses the same data subset for zooming and drawing. This could be done better: – Filter like the current default to calculate axis scales and size of the graphics elements to be drawn. – For actual drawing, always use all available data. – With this implemented, one can probably drop that `filterMode` configuration item, no need to bother users with that. – To speed up drawing straight lines, one can filter out graphics elements where **both** ends lie on the **same side** outside the visible range (for drawing curves it's more complicated). That last point sounds similar to [documentation for `weakFilter`](https://echarts.apache.org/en/option.html#dataZoom-inside.filterMode). I can't find a behavior distinction between `filter` and `weakFilter`, though. Neither in the small example here, nor in my real world application. -- 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]
