[Client] Better chart
This commit is contained in:
parent
560d315c62
commit
d4f6bf8a7b
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@
|
||||||
user_id: this.user.id
|
user_id: this.user.id
|
||||||
}).then(data => {
|
}).then(data => {
|
||||||
data.forEach(d => d.total = d.posts + d.replies + d.reposts);
|
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;
|
let x = 0;
|
||||||
data.reverse().forEach(d => {
|
data.reverse().forEach(d => {
|
||||||
d.x = x;
|
d.x = x;
|
||||||
|
|
Loading…
Reference in a new issue