diff --git a/src/components/Bars.tsx b/src/components/Bars.tsx index d5d2f6b3..df8a7643 100644 --- a/src/components/Bars.tsx +++ b/src/components/Bars.tsx @@ -59,6 +59,8 @@ const Bars = (props: BarsProps): JSX.Element => { }, xAxis: { type: 'time', + // 30 * 3600 * 24 * 1000 milliseconds + minInterval: 2592000000, splitLine: { show: false, }, diff --git a/src/pages/ContentScripts/features/repo-fork-tooltip/ForkChart.tsx b/src/pages/ContentScripts/features/repo-fork-tooltip/ForkChart.tsx index 282d9d86..0b679009 100644 --- a/src/pages/ContentScripts/features/repo-fork-tooltip/ForkChart.tsx +++ b/src/pages/ContentScripts/features/repo-fork-tooltip/ForkChart.tsx @@ -51,6 +51,8 @@ const ForkChart = (props: ForkChartProps): JSX.Element => { }, xAxis: { type: 'time', + // 30 * 3600 * 24 * 1000 milliseconds + minInterval: 2592000000, splitLine: { show: false, }, diff --git a/src/pages/ContentScripts/features/repo-header-labels/ActivityChart.tsx b/src/pages/ContentScripts/features/repo-header-labels/ActivityChart.tsx index 55b87622..4f5ddc0d 100644 --- a/src/pages/ContentScripts/features/repo-header-labels/ActivityChart.tsx +++ b/src/pages/ContentScripts/features/repo-header-labels/ActivityChart.tsx @@ -51,6 +51,8 @@ const ActivityChart = (props: ActivityChartProps): JSX.Element => { }, xAxis: { type: 'time', + // 30 * 3600 * 24 * 1000 milliseconds + minInterval: 2592000000, splitLine: { show: false, }, diff --git a/src/pages/ContentScripts/features/repo-header-labels/OpenRankChart.tsx b/src/pages/ContentScripts/features/repo-header-labels/OpenRankChart.tsx index e8860ae5..37a04197 100644 --- a/src/pages/ContentScripts/features/repo-header-labels/OpenRankChart.tsx +++ b/src/pages/ContentScripts/features/repo-header-labels/OpenRankChart.tsx @@ -51,6 +51,8 @@ const OpenRankChart = (props: OpenRankChartProps): JSX.Element => { }, xAxis: { type: 'time', + // 30 * 3600 * 24 * 1000 milliseconds + minInterval: 2592000000, splitLine: { show: false, }, diff --git a/src/pages/ContentScripts/features/repo-header-labels/ParticipantChart.tsx b/src/pages/ContentScripts/features/repo-header-labels/ParticipantChart.tsx index 66dfaf1d..2479b3ea 100644 --- a/src/pages/ContentScripts/features/repo-header-labels/ParticipantChart.tsx +++ b/src/pages/ContentScripts/features/repo-header-labels/ParticipantChart.tsx @@ -51,6 +51,8 @@ const ParticipantChart = (props: ParticipantChartProps): JSX.Element => { }, xAxis: { type: 'time', + // 30 * 3600 * 24 * 1000 milliseconds + minInterval: 2592000000, splitLine: { show: false, }, diff --git a/src/pages/ContentScripts/features/repo-issue-tooltip/IssueChart.tsx b/src/pages/ContentScripts/features/repo-issue-tooltip/IssueChart.tsx index 4780554a..0a4ffac8 100644 --- a/src/pages/ContentScripts/features/repo-issue-tooltip/IssueChart.tsx +++ b/src/pages/ContentScripts/features/repo-issue-tooltip/IssueChart.tsx @@ -62,6 +62,8 @@ const IssueChart = (props: IssueChartProps): JSX.Element => { }, xAxis: { type: 'time', + // 30 * 3600 * 24 * 1000 milliseconds + minInterval: 30 * 3600 * 24 * 1000, splitLine: { show: false, }, diff --git a/src/pages/ContentScripts/features/repo-pr-tooltip/MergedLinesChart.tsx b/src/pages/ContentScripts/features/repo-pr-tooltip/MergedLinesChart.tsx index 69f734ab..93b9807d 100644 --- a/src/pages/ContentScripts/features/repo-pr-tooltip/MergedLinesChart.tsx +++ b/src/pages/ContentScripts/features/repo-pr-tooltip/MergedLinesChart.tsx @@ -60,6 +60,8 @@ const MergedLinesChart = (props: MergedLinesChartProps): JSX.Element => { }, xAxis: { type: 'time', + // 30 * 3600 * 24 * 1000 milliseconds + minInterval: 2592000000, splitLine: { show: false, }, diff --git a/src/pages/ContentScripts/features/repo-pr-tooltip/PRChart.tsx b/src/pages/ContentScripts/features/repo-pr-tooltip/PRChart.tsx index 3a94ee1c..3c4aaa51 100644 --- a/src/pages/ContentScripts/features/repo-pr-tooltip/PRChart.tsx +++ b/src/pages/ContentScripts/features/repo-pr-tooltip/PRChart.tsx @@ -62,6 +62,8 @@ const PRChart = (props: PRChartProps): JSX.Element => { }, xAxis: { type: 'time', + // 30 * 3600 * 24 * 1000 milliseconds + minInterval: 2592000000, splitLine: { show: false, }, diff --git a/src/pages/ContentScripts/features/repo-star-tooltip/StarChart.tsx b/src/pages/ContentScripts/features/repo-star-tooltip/StarChart.tsx index 374ea4a8..1df10ea5 100644 --- a/src/pages/ContentScripts/features/repo-star-tooltip/StarChart.tsx +++ b/src/pages/ContentScripts/features/repo-star-tooltip/StarChart.tsx @@ -50,6 +50,8 @@ const StarChart = (props: StarChartProps): JSX.Element => { }, xAxis: { type: 'time', + // 30 * 3600 * 24 * 1000 milliseconds + minInterval: 2592000000, splitLine: { show: false, },