diff --git a/AquaNet/src/pages/UserHome.svelte b/AquaNet/src/pages/UserHome.svelte index e69de29b..eecf1e9c 100644 --- a/AquaNet/src/pages/UserHome.svelte +++ b/AquaNet/src/pages/UserHome.svelte @@ -0,0 +1,73 @@ + + +
+ {#if d} + +

{d.user.userName}

+ +
+ {return {x: Date.parse(it.date), y: it.rating}}), + fill: false, + borderColor: 'rgb(75, 192, 192)', + tension: 0.1 + } + ] + }} options={{ + scales: { + xAxis: { + type: 'time' + } + }}} /> +
+ +
+ {return {date: it.date, value: it.plays}})} + startDate={moment().subtract(1, 'year').toDate()} + endDate={moment().toDate()} + fontColor="#b3c6ff" + emptyColor="#2d333b" + colors={['#0e4429', '#006d32', '#26a641', '#39d353']} + /> +
+ {:else} +

Loading...

+ {/if} +
\ No newline at end of file