Skip to content

Commit

Permalink
refactor: line chart config (#1635)
Browse files Browse the repository at this point in the history
* refactor: line chart config

* remove redundant comment
  • Loading branch information
tomjeatt committed Feb 8, 2024
1 parent 68b1115 commit 4c15816
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/config/charts.ts
Original file line number Diff line number Diff line change
@@ -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 };
1 change: 1 addition & 0 deletions src/pages/Dashboard/LineChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const LineChart = ({ colors, labels, yLabels, yAxes, datasets, wrapperClassName
zeroLineColor
},
ticks: {
maxTicksLimit: 8,
fontColor: textPrimaryColor
}
}
Expand Down

0 comments on commit 4c15816

Please sign in to comment.