11class HighChartsBuilder
2+ HIGH_CHARTS_WIDTH = 600
3+
24 class << self
35 def global_options
46 LazyHighCharts ::HighChartGlobals . new do |f |
@@ -18,7 +20,7 @@ def build_annual_dojos(source)
1820 { title : { text : '増加数' } , tickInterval : 15 , max : 75 } ,
1921 { title : { text : '累積合計' } , tickInterval : 50 , max : 250 , opposite : true }
2022 ]
21- f . chart ( width : 600 , alignTicks : false )
23+ f . chart ( width : HIGH_CHARTS_WIDTH , alignTicks : false )
2224 f . colors ( [ "#A0D3B5" , "#505D6B" ] )
2325 end
2426 end
@@ -35,7 +37,7 @@ def build_annual_event_histories(source)
3537 { title : { text : '開催回数' } , tickInterval : 500 , max : 2000 } ,
3638 { title : { text : '累積合計' } , tickInterval : 3000 , max : 12000 , opposite : true }
3739 ]
38- f . chart ( width : 600 , alignTicks : false )
40+ f . chart ( width : HIGH_CHARTS_WIDTH , alignTicks : false )
3941 f . colors ( [ "#F4C34F" , "#BD2561" ] )
4042 end
4143 end
@@ -52,7 +54,7 @@ def build_annual_participants(source)
5254 { title : { text : '参加者数' } , tickInterval : 2500 , max : 12500 } ,
5355 { title : { text : '累積合計' } , tickInterval : 14000 , max : 64000 , opposite : true }
5456 ]
55- f . chart ( width : 600 , alignTicks : false )
57+ f . chart ( width : HIGH_CHARTS_WIDTH , alignTicks : false )
5658 f . colors ( [ "#EF685E" , "#35637D" ] )
5759 end
5860 end
0 commit comments