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); }); }