From 04df2b05bd16e8ccf603322bc895ff9d3f0a7010 Mon Sep 17 00:00:00 2001 From: rakuda Date: Wed, 5 Jan 2022 17:12:54 +0900 Subject: [PATCH] =?UTF-8?q?2021=E5=B9=B4=E3=81=AE=E7=B5=B1=E8=A8=88?= =?UTF-8?q?=E3=83=87=E3=83=BC=E3=82=BF=E3=82=92=E8=BF=BD=E5=8A=A0=E3=81=97?= =?UTF-8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/stats_controller.rb | 4 ++-- app/models/high_charts_builder.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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"])