var chartWidgetName = this.options.widgetName.toLocaleLowerCase()setTimeout(function(){var chart = FR.Chart.WebUtils.getChart(chartWidgetName).getChartWithIndex(0); autoLegendHighlights(chart, 1); function autoLegendHighlights(chart, interval) { // 自动高亮间隔interval = interval || 5; // 已存在则清除if (chart.autoLegendHighlightTimer) {clearInterval(chart.autoLegendHighlightTimer);chart.autoLegendHighlightTimer = null; chart.highlightTarget = null;chart._updateSeriesStyle(); return;} var series = chart.series,len = series.length; var index = chart.autoLegendHighlightIndex || 0; chart.autoLegendHighlightTimer = setInterval(function() { chart.highlightTarget = series.name;chart._updateSeriesStyle(); index = chart.autoLegendHighlightIndex = (index === len - 1 ? 0 : ++index); }, interval * 1000); }},3000)