From 44b36dd7b4c8fb1cd780c0c993b846a1f137d241 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@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 +}