You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/10/08 05:22:55 UTC
[GitHub] Ovilia commented on a change in pull request #9162: fix: #8962 闭合多边形时,如果第一个值为NaN,导致最后值也为NaN,渲染不出连接线。
Ovilia commented on a change in pull request #9162: fix: #8962 闭合多边形时,如果第一个值为NaN,导致最后值也为NaN,渲染不出连接线。
URL: https://github.com/apache/incubator-echarts/pull/9162#discussion_r223249752
##########
File path: src/chart/radar/radarLayout.js
##########
@@ -38,7 +38,12 @@ export default function (ecModel) {
data.each(function (idx) {
// Close polygon
- points[idx][0] && points[idx].push(points[idx][0].slice());
+
+ let index = points[idx].findIndex(([x, y]) => {
Review comment:
不要用 ES6 的语法,跟 ECharts 项目保持一致吧。所以 let、findIndex、箭头表达式就不要用了。
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org