From 4c158161b7867263febc91eda51c090070eaf697 Mon Sep 17 00:00:00 2001 From: tomjeatt <40243778+tomjeatt@users.noreply.github.com> Date: Thu, 8 Feb 2024 13:29:28 +0000 Subject: [PATCH] refactor: line chart config (#1635) * refactor: line chart config * remove redundant comment --- src/config/charts.ts | 5 +---- src/pages/Dashboard/LineChart/index.tsx | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/config/charts.ts b/src/config/charts.ts index 95d118c16d..a275b118ca 100644 --- a/src/config/charts.ts +++ b/src/config/charts.ts @@ -1,6 +1,3 @@ -// Get 6 values to be able to calculate difference between 5 days ago and 6 days ago. -// Thus volume per day 5 days ago can be displayed. -// Cumulative volume is also only displayed to 5 days. -const COUNT_OF_DATES_FOR_CHART = 6; +const COUNT_OF_DATES_FOR_CHART = 180; export { COUNT_OF_DATES_FOR_CHART }; diff --git a/src/pages/Dashboard/LineChart/index.tsx b/src/pages/Dashboard/LineChart/index.tsx index c99d92cc91..cf9c82c57c 100644 --- a/src/pages/Dashboard/LineChart/index.tsx +++ b/src/pages/Dashboard/LineChart/index.tsx @@ -76,6 +76,7 @@ const LineChart = ({ colors, labels, yLabels, yAxes, datasets, wrapperClassName zeroLineColor }, ticks: { + maxTicksLimit: 8, fontColor: textPrimaryColor } }