Skip to content

Commit a164299

Browse files
committed
尝试修改散点图生成数据方式
1 parent 2c084e1 commit a164299

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bin/templates/report.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -519,11 +519,7 @@ <h1 align="center"><a href="https://github.com/JeffXue/web-log-parser" target="g
519519
}
520520
}
521521
},
522-
data: (function () {
523-
var d = [];
524-
{% for cost_time in cost_times_list %}d.push([new Date('{{ cost_time['time'] }}'), {{ cost_time['cost_time'] }}]);{% endfor %}
525-
return d;
526-
})()
522+
data: [{% for cost_time in cost_times_list %}[new Date('{{ cost_time['time'] }}'), {{ cost_time['cost_time'] }}],{% endfor %}],
527523
}
528524
]
529525
};

0 commit comments

Comments
 (0)