From 790d4c3e991941af441292239b41b6e5852ccd43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=86MB=C3=98?= <69138346+TAEMBO@users.noreply.github.com> Date: Sun, 22 Jan 2023 10:14:38 -0800 Subject: [PATCH] Fix improper graph label --- src/commands/mp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/mp.ts b/src/commands/mp.ts index 788787e..476cd8e 100644 --- a/src/commands/mp.ts +++ b/src/commands/mp.ts @@ -118,7 +118,7 @@ export default { // 30m mark ctx.setLineDash([8, 16]); ctx.beginPath(); - const lastMonthStart = graphOrigin[0] + (nodeWidth * (data.length - 60)); + const lastMonthStart = graphOrigin[0] + (nodeWidth * (data.length - 30)); ctx.lineTo(lastMonthStart, graphOrigin[1]); ctx.lineTo(lastMonthStart, graphOrigin[1] + graphSize[1]); ctx.stroke(); @@ -316,4 +316,4 @@ export default { /* .addSubcommand((opt)=>opt .setName('series') .setDescription('Step-by-step on joining Daggerwin\'s MP series')) */ -} \ No newline at end of file +}