1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 08:20:58 -05:00

Fix improper graph label

This commit is contained in:
TÆMBØ 2023-01-22 10:14:38 -08:00 committed by GitHub
parent dcaaf1b5c9
commit 790d4c3e99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ export default {
// 30m mark // 30m mark
ctx.setLineDash([8, 16]); ctx.setLineDash([8, 16]);
ctx.beginPath(); 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]);
ctx.lineTo(lastMonthStart, graphOrigin[1] + graphSize[1]); ctx.lineTo(lastMonthStart, graphOrigin[1] + graphSize[1]);
ctx.stroke(); ctx.stroke();