Skip to content
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: 2 additions & 2 deletions app/controllers/stats_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

# 推移グラフ
Expand Down
4 changes: 2 additions & 2 deletions app/models/high_charts_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand All @@ -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"])
Expand Down