mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-13 09:10:47 +01:00
[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
|
||||
}).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 a new issue