From a6c1ced73a1059a2731b890e41ac36aa4509308a Mon Sep 17 00:00:00 2001 From: Pawel Borkar Date: Mon, 25 Apr 2022 12:56:24 +0530 Subject: [PATCH] Fix: Chart x-axis --- src/components/LineChart.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/LineChart.jsx b/src/components/LineChart.jsx index b78209d..17fc3f2 100644 --- a/src/components/LineChart.jsx +++ b/src/components/LineChart.jsx @@ -31,9 +31,11 @@ const LineChart = ({ coinHistory, currentPrice, coinName }) => { }, ], }; - const options = { scales: { + x: { + reverse: true, + }, y: { ticks: { beginAtZero: true,