-----重新提问目前这段js+html实现了需要的展示样式。但是遇到的一个问题,当数据集加载时间过长的时候,js里的map也会重新加载。导致悬停提示加载缓慢。鼠标移到对应点之后,js会重新加载一遍数据集。导致悬停提示出不来。大佬们有没有优化的空间。(图表悬停提示悬停提示.zip)function(){ var cla = this.category; if(cla=="1月"){ var cl= this.category; } else { var cl=(cla.replace("月","")*1)+"月"; } var sql = "map('"+cl+"','ds1',1,2)"; var value = FR.remoteEvaluate(sql); var bl=this.value; var hb="map('"+cl+"','ds1',1,3)"; var value2 = FR.remoteEvaluate(hb); if(value2<0) {return "<span style='color:#f6f6fa;font-size:12px;font-weight:bold'>"+cla+"<br>当期值为:"+" "+"<span style='color:#FEB750;font-size:20px;font-weight:bold'>"+bl+"</span>"+"<br>与上月环比:"+"</span>"+ "<span style='color:#d14d4d;font-size:9px;font-weight:bold'> ▼"+" "+(value2*100).toFixed(2)+"%"+"</span>";} if((value2*100).toFixed(2)>=0) {return "<span style='color:#f6f6fa;font-size:12px;font-weight:bold'>"+cla+"<br>当期值为:"+" "+"<span style='color:#FEB750;font-size:20px;font-weight:bold'>"+bl+"</span>"+"<br>与上月环比:"+"</span>"+ "<span style='color:#2fb823;font-size:9px;font-weight:bold'> ▲"+" "+(value2*100).toFixed(2)+"%"+"</span>";}}