setTimeout(function() {
//调整整个柱形图的位置
//document.getElementsByTagName("svg")[0].style.transform = "translate3d(0px, 14px, 0px)";
var bars = document.getElementsByTagName("svg");
if (bars && typeof(bars) != 'undefined' && bars != 0 && bars.length > 0) {
var bars0 = bars[0].firstElementChild.getElementsByTagName("linearGradient");
if (bars0 && typeof(bars0) != 'undefined' && bars0 != 0 && bars0.length > 0) {
//系列1
for (var i = 0; i < recordnum; i++) {
if (bars0[i].childNodes && typeof(bars0[i].childNodes) != 'undefined') {
bars0[i].childNodes[0].style.stopColor = "#2de84f"; //#102337
bars0[i].childNodes[1].style.stopColor = "#8cffb2"; //02aff6
}
}
//系列2
if (bars0.length > recordnum) {
for (var i = recordnum - 1; i < recordnum * 2 - 2; i++) {
if (bars0[i].childNodes && typeof(bars0[i].childNodes) != 'undefined' && bars0[i].childNodes != 0) {
bars0[i].childNodes[0].style.stopColor = "#005c6d";
bars0[i].childNodes[1].style.stopColor = "#01f8f5";
}
}
}
}
}
}, 5000)