Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #7111 from kaizumaki/feature/fix-isBetween-option
Browse files Browse the repository at this point in the history
[bugfix]isBetweenの第3引数を'day'にする
  • Loading branch information
nyagihime authored Feb 21, 2022
2 parents 9578612 + cbc1d4b commit f8d5b9c
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion components/index/CardsFeatured/TestedNumber/Chart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ const options: ThisTypedComponentOptionsWithRecordProps<
const graphSeries = getGraphSeriesStyle(this.chartData.length)
const rangeDate = this.labels.filter((item) => {
const date = dayjs(item)
return date.isBetween(this.startDate, this.endDate, null, '[]')
return date.isBetween(this.startDate, this.endDate, 'day', '[]')
})
if (this.dataKind === 'transition') {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ const options: ThisTypedComponentOptionsWithRecordProps<
const rangeDate = this.labels.filter((item) => {
const date = dayjs(item)
return date.isBetween(this.startDate, this.endDate, null, '[]')
return date.isBetween(this.startDate, this.endDate, 'day', '[]')
})
return {
Expand Down
2 changes: 1 addition & 1 deletion components/index/CardsFeatured/Vaccination/Chart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ const options: ThisTypedComponentOptionsWithRecordProps<
const rangeDate = this.labels.filter((item) => {
const date = dayjs(item)
return date.isBetween(this.startDate, this.endDate, null, '[]')
return date.isBetween(this.startDate, this.endDate, 'day', '[]')
})
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ const options: ThisTypedComponentOptionsWithRecordProps<
const values = this.chartData
.filter((item) => {
const date = dayjs(item.label)
return date.isBetween(this.startDate, this.endDate, null, '[]')
return date.isBetween(this.startDate, this.endDate, 'day', '[]')
})
.map((d) => d.transition)
const max = Math.max(...values) + this.addedValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export default Vue.extend<Data, Methods, Computed, Props>({
displayLegends: [true, true],
colors,
startDate: '2020-01-01',
endDate: dayjs().format('YYYY-MM-DD'),
endDate: dayjs().format('YYYY-MM-DDT00:00:00+09:00'),
}
},
computed: {
Expand Down Expand Up @@ -314,7 +314,7 @@ export default Vue.extend<Data, Methods, Computed, Props>({
const rangeDate = this.labels.filter((item) => {
const date = dayjs(item)
return date.isBetween(this.startDate, this.endDate, null, '[]')
return date.isBetween(this.startDate, this.endDate, 'day', '[]')
})
return {
Expand Down
2 changes: 1 addition & 1 deletion components/index/CardsMonitoring/PositiveRate/Chart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ const options: ThisTypedComponentOptionsWithRecordProps<
displayData() {
const rangeDate = this.labels.filter((item) => {
const date = dayjs(item)
return date.isBetween(this.startDate, this.endDate, null, '[]')
return date.isBetween(this.startDate, this.endDate, 'day', '[]')
})
return {
Expand Down
2 changes: 1 addition & 1 deletion components/index/CardsMonitoring/SevereCase/Chart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ const options: ThisTypedComponentOptionsWithRecordProps<
const values = this.chartData
.filter((item) => {
const date = dayjs(item.label)
return date.isBetween(this.startDate, this.endDate, null, '[]')
return date.isBetween(this.startDate, this.endDate, 'day', '[]')
})
.map((d) => d.transition)
const max = Math.max(...values)
Expand Down
2 changes: 1 addition & 1 deletion components/index/CardsMonitoring/UntrackedRate/Chart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export default Vue.extend<Data, Methods, Computed, Props>({
displayData() {
const rangeDate = this.labels.filter((item) => {
const date = dayjs(item)
return date.isBetween(this.startDate, this.endDate, null, '[]')
return date.isBetween(this.startDate, this.endDate, 'day', '[]')
})
return {
Expand Down
2 changes: 1 addition & 1 deletion components/index/_shared/MixedBarAndLineChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ const options: ThisTypedComponentOptionsWithRecordProps<
displayData() {
const rangeDate = this.labels.filter((item) => {
const date = dayjs(item)
return date.isBetween(this.startDate, this.endDate, null, '[]')
return date.isBetween(this.startDate, this.endDate, 'day', '[]')
})
return {
Expand Down
2 changes: 1 addition & 1 deletion components/index/_shared/TimeBarChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ const options: ThisTypedComponentOptionsWithRecordProps<
const values = this.chartData
.filter((item) => {
const date = dayjs(item.label)
return date.isBetween(this.startDate, this.endDate, null, '[]')
return date.isBetween(this.startDate, this.endDate, 'day', '[]')
})
.map((d) => d[dataKind])
const max = Math.max(...values)
Expand Down

0 comments on commit f8d5b9c

Please sign in to comment.