Skip to content

Commit 811497c

Browse files
committed
Fix cut-off yAxis of HighCharts in Stats page
1 parent 51c5957 commit 811497c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/models/high_charts_builder.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def build_annual_event_histories(source)
3333
f.series(type: 'line', name: '累積合計', yAxis: 1, data: data[:cumulative_sums])
3434
f.yAxis [
3535
{ title: { text: '開催回数' }, tickInterval: 500, max: 2000 },
36-
{ title: { text: '累積合計' }, tickInterval: 2500, max: 10000, opposite: true }
36+
{ title: { text: '累積合計' }, tickInterval: 3000, max: 12000, opposite: true }
3737
]
3838
f.chart(width: 600, alignTicks: false)
3939
f.colors(["#F4C34F", "#BD2561"])
@@ -49,8 +49,8 @@ def build_annual_participants(source)
4949
f.series(type: 'column', name: '参加者数', yAxis: 0, data: data[:increase_nums])
5050
f.series(type: 'line', name: '累積合計', yAxis: 1, data: data[:cumulative_sums])
5151
f.yAxis [
52-
{ title: { text: '参加者数' }, tickInterval: 2500, max: 12500 },
53-
{ title: { text: '累積合計' }, tickInterval: 12000, max: 60000, opposite: true }
52+
{ title: { text: '参加者数' }, tickInterval: 2500, max: 12500 },
53+
{ title: { text: '累積合計' }, tickInterval: 14000, max: 64000, opposite: true }
5454
]
5555
f.chart(width: 600, alignTicks: false)
5656
f.colors(["#EF685E", "#35637D"])

0 commit comments

Comments
 (0)