From 20773385f44efbe75833d857a8134a87dc0e0665 Mon Sep 17 00:00:00 2001 From: Redume Date: Thu, 9 Jan 2025 12:52:23 +0300 Subject: [PATCH] fix(chart): Corrects chart size for large number of dates --- chart/function/create_chart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/function/create_chart.py b/chart/function/create_chart.py index f6b1d07..5faf618 100644 --- a/chart/function/create_chart.py +++ b/chart/function/create_chart.py @@ -60,7 +60,7 @@ async def create_chart( for row in data: date.append(str(row['date'])) rate.append(row['rate']) - width = 18.5 + (len(date) // 5) * 2 + width = 18.5 + (len(date) // 5) * 3 fig.set_size_inches(width, 9.5)