JS事件提示:Cannot read property 'points' of undefined,是缺少了什么文件吗?完整JS如下: var vanchart = FR.Chart.WebUtils.getChart('A2').vanCharts.charts[0], openAutoTooltipCarouselDelay = 2000; openAutoTooltipCarousel();
function openAutoTooltipCarousel(ele){ var series = vanchart.series; var points = series[0].points, pointsLen = points.length; var pointIndex = 0;
window.openAutoTooltipCarouselTimer = setInterval(function (){ vanchart.showTooltip(points[pointIndex]);
pointIndex < pointsLen - 1 ? pointIndex++ : pointIndex = 0;
}, openAutoTooltipCarouselDelay) } |