From cd686859c953ee30e091732bfcf4e788018f4e5b Mon Sep 17 00:00:00 2001 From: Umbranox Date: Sat, 11 May 2024 11:24:56 +1000 Subject: [PATCH] Yeet red on charts --- src/lib/components/player/rank-chart.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/components/player/rank-chart.svelte b/src/lib/components/player/rank-chart.svelte index 6bde6c0..2a7a657 100644 --- a/src/lib/components/player/rank-chart.svelte +++ b/src/lib/components/player/rank-chart.svelte @@ -78,7 +78,6 @@ labels.push(label); } const skipped = (ctx, value) => (ctx.p0.skip || ctx.p1.skip ? value : undefined); - const down = (ctx, value) => (ctx.p0.parsed.y < ctx.p1.parsed.y ? value : undefined); const data = { labels: labels, datasets: [ @@ -90,7 +89,7 @@ fill: false, color: '#fff', segment: { - borderColor: (ctx) => skipped(ctx, 'rgb(186,186,186,0.2)') || down(ctx, 'rgb(192,75,75)'), + borderColor: (ctx) => skipped(ctx, 'rgb(186,186,186,0.2)'), borderDash: (ctx) => skipped(ctx, [6, 6]) } }