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/08/07 07:31:54 UTC

[GitHub] [incubator-echarts] xiaobaiha opened a new issue #13095: 平滑曲线控制点的选择

xiaobaiha opened a new issue #13095:
URL: https://github.com/apache/incubator-echarts/issues/13095


   原先的算法会根据当前点与前一个点、后一个点,共同决定控制点位置,并且控制点两边一般是在一条直线上的(除非因为超出了最大最小值而被调整)。正如 @Erimus-Koo 在上面列出的(感谢~),这一算法会在某些情况下出现不理想的平滑结果,并且是比较常见的。
   因此,我们新实现了一种更简单有效的平滑算法,也就是每个控制点两边都保持水平或竖直(取决于数据点是在哪个方向上单调递增)。这样的好处是,生成的曲线是可导的(每个点都是连续并且存在导数),不会产生突变的情况。缺点是没法处理不单调的情况(比如点坐标依次是:`[100, 100], [200, 200], [150, 180]`)。
   因此,ECharts 默认对于单调的情况采用新算法,对于不单调的情况采用老算法。如果想要强行使用老算法,可以将 `smoothMonotone` 指定为 `'none'` 实现。例子参见 0af0297bf29b1d6652879c9686355138e0656457 。
   后面我会在文档里补充图文,更清楚地说明这一问题。
   
   _Originally posted by @Ovilia in https://github.com/apache/incubator-echarts/issues/7158#issuecomment-364828528_


----------------------------------------------------------------
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



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


[GitHub] [incubator-echarts] xiaobaiha closed issue #13095: 平滑曲线控制点的选择

Posted by GitBox <gi...@apache.org>.
xiaobaiha closed issue #13095:
URL: https://github.com/apache/incubator-echarts/issues/13095


   


----------------------------------------------------------------
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



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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #13095: 平滑曲线控制点的选择

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #13095:
URL: https://github.com/apache/incubator-echarts/issues/13095#issuecomment-670375044


   This issue is not created using [issue template](https://ecomfe.github.io/echarts-issue-helper/) so I'm going to close it. 🙊
   Sorry for this, but it helps save our maintainers' time so that more developers get helped.
   Feel free to create another issue using the issue template.
   
   If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.
   
   这个 issue 未使用 [issue 模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。
   为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
   如果您愿意,可以请使用 issue 模板重新创建 issue。
   
   如果你认为虽然没有使用模板,但你已经提供了复现问题的充分描述,或者你的问题无法使用模板表达,也可以重新 open 这个 issue。


----------------------------------------------------------------
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



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