From fb7894961176aa2e56fee467ed6f3ef8ae7bfae0 Mon Sep 17 00:00:00 2001
From: WebMoneyMaker <103347453+LetsWorkAround@users.noreply.github.com>
Date: Wed, 21 Aug 2024 18:33:04 +0900
Subject: [PATCH] Update index.html
---
index.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/index.html b/index.html
index e42923e..aad1a67 100644
--- a/index.html
+++ b/index.html
@@ -578,12 +578,12 @@
레드판다스컴퍼니 주식회사 (Red Pandas Company)
});
// Draw legend
- funds.forEach((fund, index) => {
+ funds.forEach((fund, fundIndex) => {
ctx.fillStyle = colors[fundIndex];
- ctx.fillRect(width - 100, 20 + index * 20, 15, 15);
+ ctx.fillRect(width - 100, 20 + fundIndex * 20, 15, 15);
ctx.fillStyle = '#ffffff';
ctx.textAlign = 'left';
- ctx.fillText(fund, width - 80, 32 + index * 20);
+ ctx.fillText(fund, width - 80, 32 + fundIndex * 20);
});
}