-
Notifications
You must be signed in to change notification settings - Fork 19.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
能否增加对 type=line 的图的增量渲染 #12249
Comments
Hi! We've received your issue and please be patient to get responded. 🎉 In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer. If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions. If you are interested in the project, you may also subscribe our mail list. Have a nice day! 🍵 |
@AricZhu 增量渲染主要是针对海量图形的绘制的,折线图的图形其实只有一条线,所以没有增量渲染的配置。 现在折线图的性能主要是在数据的处理和折线的绘制上(canvas绘制宽度 > 1 px 的线其实很慢)。这个之前采用了数据采样(sampling)来减少需要处理的数据以及减少绘制折线的复杂度。但是之前采用的采样算法比较简单(可能就最近点采样,平滑采样),会导致一些极值在采样完丢失,这个后续可以加入采用一些类似保边滤波的算法来优化这种情况。 @100pah 刚想了想应该可以把折线拆成很多段折线分开绘制改造成增量渲染的方式(可能比退化成点效果好点,点的话占用图形太多了)。 之前也有看到过一些关于折线图性能问题的反馈,目前计划在正在开发的 5.0 中做折线图的集中优化。@AricZhu 不知道是否方便把你的 case 发我们方便 benchmark |
如果能实现将折线图拆成多段进行增量渲染的话,那真的太好了。非常期待这个功能的上线。 |
@AricZhu 了解,那等我们功能上线后还请帮忙测试下 |
嗯嗯,一定一定。非常期待这个功能的上线 |
@AricZhu 我们在 echarts 5.0 中对折线图性能做了重点的优化,如果使用静态的 Float64Array 作为数据源,可以做到 1s 内渲染完一千万的数据,已经不需要增量渲染了。例子链接 https://jsfiddle.net/ob81ap3q/ 。 另外新增加的 LTTB 采样应该能解决你说的“损害了原始数据的展示”的问题 |
Version
4.6.0
Steps to reproduce
能否增加对 type=line 的图的增量渲染
What is expected?
希望能增加对 type=line 的图的增量渲染
What is actually happening?
目前并不支持对 type=line 的增量渲染,采用 sample 的方式又不好用,严重损害原始数据的展示
The text was updated successfully, but these errors were encountered: