You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/03/11 12:43:27 UTC

[GitHub] [incubator-echarts] pissang commented on issue #12249: 能否增加对 type=line 的图的增量渲染

pissang commented on issue #12249: 能否增加对 type=line 的图的增量渲染
URL: https://github.com/apache/incubator-echarts/issues/12249#issuecomment-597610562
 
 
   @AricZhu 增量渲染主要是针对海量图形的绘制的,折线图的图形其实只有一条线,所以没有增量渲染的配置。
   
   现在折线图的性能主要是在数据的处理和折线的绘制上(canvas绘制宽度 > 1 px 的线其实很慢)。这个之前采用了数据采样(sampling)来减少需要处理的数据以及减少绘制折线的复杂度。但是之前采用的采样算法比较简单(可能就最近点采样,平滑采样),会导致一些极值在采样完丢失,这个后续可以加入采用一些类似保边滤波的算法来优化这种情况。
   
   @100pah 刚想了想应该可以把折线拆成很多段折线分开绘制改造成增量渲染的方式(可能比退化成点效果好点,点的话占用图形太多了)。
   
   之前也有看到过一些关于折线图性能问题的反馈,目前计划在正在开发的 5.0 中做折线图的集中优化。@AricZhu 不知道是否方便把你的 case 发我们方便 benchmark

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org