Skip to content

Commit

Permalink
fix: update minInterval for xAxis in multiple charts (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
TieWay59 authored Nov 22, 2023
1 parent f7a4427 commit e8aab57
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Bars.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ const Bars = (props: BarsProps): JSX.Element => {
},
xAxis: {
type: 'time',
// 30 * 3600 * 24 * 1000 milliseconds
minInterval: 2592000000,
splitLine: {
show: false,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ const ForkChart = (props: ForkChartProps): JSX.Element => {
},
xAxis: {
type: 'time',
// 30 * 3600 * 24 * 1000 milliseconds
minInterval: 2592000000,
splitLine: {
show: false,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ const ActivityChart = (props: ActivityChartProps): JSX.Element => {
},
xAxis: {
type: 'time',
// 30 * 3600 * 24 * 1000 milliseconds
minInterval: 2592000000,
splitLine: {
show: false,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ const OpenRankChart = (props: OpenRankChartProps): JSX.Element => {
},
xAxis: {
type: 'time',
// 30 * 3600 * 24 * 1000 milliseconds
minInterval: 2592000000,
splitLine: {
show: false,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ const ParticipantChart = (props: ParticipantChartProps): JSX.Element => {
},
xAxis: {
type: 'time',
// 30 * 3600 * 24 * 1000 milliseconds
minInterval: 2592000000,
splitLine: {
show: false,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ const MergedLinesChart = (props: MergedLinesChartProps): JSX.Element => {
},
xAxis: {
type: 'time',
// 30 * 3600 * 24 * 1000 milliseconds
minInterval: 2592000000,
splitLine: {
show: false,
},
Expand Down
2 changes: 2 additions & 0 deletions src/pages/ContentScripts/features/repo-pr-tooltip/PRChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ const PRChart = (props: PRChartProps): JSX.Element => {
},
xAxis: {
type: 'time',
// 30 * 3600 * 24 * 1000 milliseconds
minInterval: 2592000000,
splitLine: {
show: false,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ const StarChart = (props: StarChartProps): JSX.Element => {
},
xAxis: {
type: 'time',
// 30 * 3600 * 24 * 1000 milliseconds
minInterval: 2592000000,
splitLine: {
show: false,
},
Expand Down

0 comments on commit e8aab57

Please sign in to comment.