diff options
Diffstat (limited to 'resources/pug')
| -rw-r--r-- | resources/pug/finals/publications.pug | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/resources/pug/finals/publications.pug b/resources/pug/finals/publications.pug index f669e17..86aad1d 100644 --- a/resources/pug/finals/publications.pug +++ b/resources/pug/finals/publications.pug @@ -179,7 +179,7 @@ block content radius: 10, symbol: 'circle', }, - data: data.map(entry => [Date.parse(entry[0]), entry[1]]), + data: data.map(entry => ({x: Date.parse(entry[0]), y: entry[1], name: entry[2]})), }; } @@ -206,7 +206,11 @@ block content }, tooltip: { pointFormatter: function(){ - return `Review ${this.y < 0 ? 'declined' : 'performed'} in ${Math.abs(this.y)} day(s)`; + let label = 'Review'; + if (typeof this.name != 'undefined') + label = `${this.name} reviews`; + let days = Math.abs(this.y) == 1 ? 'day' : 'days'; + return `${label} ${this.y < 0 ? 'declined' : 'performed'} in ${Math.abs(this.y)} ${days}`; }, }, series: [ @@ -231,6 +235,9 @@ block content ['2025-08-29', 3], ['2025-10-10', 4], ]), + makeSeries('SLE (conference)', '#8b8baf', [ + ['2026-01-08', 1, 8], + ]), makeSeries('The New Scholar', '#dbbe9e', [ ['2023-05-05', 1], ]), |
