diff --git a/app/controllers/stats_controller.rb b/app/controllers/stats_controller.rb index 3bf8be47c..40ba0af7a 100644 --- a/app/controllers/stats_controller.rb +++ b/app/controllers/stats_controller.rb @@ -2,8 +2,8 @@ class StatsController < ApplicationController def show @url = request.url - # 2012年1月1日〜2020年12月31日までの集計結果 - period = Time.zone.local(2012).beginning_of_year..Time.zone.local(2020).end_of_year + # 2012年1月1日〜2021年12月31日までの集計結果 + period = Time.zone.local(2012).beginning_of_year..Time.zone.local(2021).end_of_year stats = Stat.new(period) # 推移グラフ diff --git a/app/models/high_charts_builder.rb b/app/models/high_charts_builder.rb index fc95db12f..da94b8af9 100644 --- a/app/models/high_charts_builder.rb +++ b/app/models/high_charts_builder.rb @@ -33,7 +33,7 @@ def build_annual_event_histories(source) f.series(type: 'line', name: '累積合計', yAxis: 1, data: data[:cumulative_sums]) f.yAxis [ { title: { text: '開催回数' }, tickInterval: 400, max: 2000 }, - { title: { text: '累積合計' }, tickInterval: 1200, max: 6000, opposite: true } + { title: { text: '累積合計' }, tickInterval: 1400, max: 7000, opposite: true } ] f.chart(width: 600, alignTicks: false) f.colors(["#F4C34F", "#BD2561"]) @@ -50,7 +50,7 @@ def build_annual_participants(source) f.series(type: 'line', name: '累積合計', yAxis: 1, data: data[:cumulative_sums]) f.yAxis [ { title: { text: '参加者数' }, tickInterval: 2500, max: 12500 }, - { title: { text: '累積合計' }, tickInterval: 8000, max: 40000, opposite: true } + { title: { text: '累積合計' }, tickInterval: 10000, max: 50000, opposite: true } ] f.chart(width: 600, alignTicks: false) f.colors(["#EF685E", "#35637D"])