📅  最后修改于: 2022-03-11 14:54:01.685000             🧑  作者: Mango
function data() {
var ret = [];
ret.push({
y: 'Today',
a:
});
return ret;
}
var graph = Morris.Bar({
element: 'graph',
data: data(),
xkey: 'y',
ykeys: ['a'],
labels: ['random label']
});
function update() {
graph.setData(data());
}
setInterval(update, 60000);