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

Fix 20201126 #260

Merged
merged 2 commits into from
Nov 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion components/charts/MultiBarChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,9 @@ const options: ThisTypedComponentOptionsWithRecordProps<
const labelledbyId = `${this.titleId}-graph`

// スクロールする幅が大きい分には問題ないので大きめにした 本来は適切な値を計算すべき
canvas!.parentElement!.parentElement!.parentElement!.scrollLeft! = 2000
canvas!.parentElement!.parentElement!.parentElement!.scrollLeft! = Number(
process.env.scroll
)

if (canvas) {
canvas.setAttribute('role', 'img')
Expand Down
6 changes: 4 additions & 2 deletions components/charts/StackedBarChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ const options: ThisTypedComponentOptionsWithRecordProps<
},
graphWidth() {
const window = this.chartWidth ? this.chartWidth : 0
const calc = this.displayData.labels!.length * 50
const calc = this.displayData.labels!.length * 70
return Math.max(window, calc)
}
},
Expand Down Expand Up @@ -458,7 +458,9 @@ const options: ThisTypedComponentOptionsWithRecordProps<
const canvas = barElement.querySelector('canvas')
const labelledbyId = `${this.titleId}-graph`
// スクロールする幅が大きい分には問題ないので大きめにした 本来は適切な値を計算すべき
canvas!.parentElement!.parentElement!.parentElement!.scrollLeft! = 2000
canvas!.parentElement!.parentElement!.parentElement!.scrollLeft! = Number(
process.env.scroll
)

if (canvas) {
canvas.setAttribute('role', 'img')
Expand Down
4 changes: 3 additions & 1 deletion components/charts/TimeChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,9 @@ const options: ThisTypedComponentOptionsWithRecordProps<
const barElement = barChart.$el
const canvas = barElement.querySelector('canvas')
// スクロールする幅が大きい分には問題ないので大きめにした 本来は適切な値を計算すべき
canvas!.parentElement!.parentElement!.parentElement!.scrollLeft! = 2000
canvas!.parentElement!.parentElement!.parentElement!.scrollLeft! = Number(
process.env.scroll
)
}
}

Expand Down
3 changes: 2 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const config: Configuration = {
env: {
apiUrl: 'https://data-covid19-oita.netlify.app/data.json',
supportUrl: 'https://data-covid19-oita.netlify.app/financial.json',
newsUrl: 'https://data-covid19-oita.netlify.app/news.json'
newsUrl: 'https://data-covid19-oita.netlify.app/news.json',
scroll: '100000'
},
/*
** Headers of the page
Expand Down