[Client] Better chart
This commit is contained in:
parent
560d315c62
commit
d4f6bf8a7b
|
@ -25,7 +25,7 @@
|
|||
user_id: this.user.id
|
||||
}).then(data => {
|
||||
data.forEach(d => d.total = d.posts + d.replies + d.reposts);
|
||||
this.peak = Math.max.apply(null, data.map(d => d.total));
|
||||
this.peak = Math.max.apply(null, data.map(d => d.total)) / 2;
|
||||
let x = 0;
|
||||
data.reverse().forEach(d => {
|
||||
d.x = x;
|
||||
|
|
Loading…
Reference in New Issue