fix(chart): Corrects chart size for large number of dates

This commit is contained in:
Данил 2025-01-09 12:52:23 +03:00
parent 1a3c751abc
commit 20773385f4

View file

@ -60,7 +60,7 @@ async def create_chart(
for row in data: for row in data:
date.append(str(row['date'])) date.append(str(row['date']))
rate.append(row['rate']) 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) fig.set_size_inches(width, 9.5)