Skip to content

Commit

Permalink
fix chart lagging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arnard76 committed Apr 30, 2024
1 parent 0ab93da commit fb365a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/app/components/pollenCalendar/MultiChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ const MultiChart = memo(function MultiChart({
},
},

maintainAspectRatio: false,
parsing: false,

scales: {
x: {
stacked: true,
Expand Down Expand Up @@ -142,7 +145,7 @@ const MultiChart = memo(function MultiChart({

return (
<div className="flex">
{chartData && <Chart type="line" data={chartData as any} options={chartOptions}></Chart>}
{chartData && <Chart type="line" data={chartData as any} options={chartOptions} height="420"></Chart>}
</div>
)
})
Expand Down

0 comments on commit fb365a0

Please sign in to comment.