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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]