全部显示求和值又是正确的 如图当值选一个系列时,数据条显示值为8,提示值显示为0.00 js代码如下: function() { var point = this; var series = this.series; var points = this.points; var validPoints = points.filter(function(p) { return p.series.visible && p.visible && !p.isNull; }); var len = points.length; var vlen = validPoints.length; if (point == validPoints[vlen - 1]) { var value = 0; for (var i = -1; ++i < len;) { if (points[i].series.visible) { value += points[i].getTargetValue(); } } return value; } else { return ""; } }
求大佬指点! |