zpf96126 commented on issue #12545:
URL:
https://github.com/apache/incubator-echarts/issues/12545#issuecomment-624412833
我把function randomData() {
now = new Date();
value = value Math.random() * 21 - 10;
return {
name: now.toString(),
value: [
[now.getFullYear(), now.getMonth() 1, now.getDate()].join('/') +" "+
[now.getHours(), now.getMinutes(), now.getSeconds()].join(':'),
Math.round(value)
]
};
}
改成
function randomData() {
now = new Date();
value = value Math.random() * 21 - 10;
var ds;
if (now.getSeconds()< 10) {
ds = "0" + now.getSeconds().toString();
} else {
ds = now.getSeconds().toString();
}
return {
name: now.toString(),
value: [
[now.getFullYear(), now.getMonth() 1, now.getDate()].join('/')+ " "+
[now.getHours(), now.getMinutes(), ds].join(':'),
Math.round(value)
]
};后正常了
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]