Skip to content

Commit 0c95b47

Browse files
committed
refactor: 英語版統計グラフのラベルを簡潔に変更
道場数グラフの文脈では'New Dojos'ではなく'New'で十分明確なため、 ラベルを簡潔にしました。 - 凡例: 'New Dojos' → 'New' - Y軸タイトル: 'New Dojos' → 'New'
1 parent 54e4bdd commit 0c95b47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/models/high_charts_builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ def build_annual_dojos(source, lang = 'ja')
1515
LazyHighCharts::HighChart.new('graph') do |f|
1616
f.title(text: title_text)
1717
f.xAxis(categories: data[:years])
18-
f.series(type: 'column', name: lang == 'en' ? 'New Dojos' : '開設数', yAxis: 0, data: data[:increase_nums])
18+
f.series(type: 'column', name: lang == 'en' ? 'New' : '開設数', yAxis: 0, data: data[:increase_nums])
1919
f.series(type: 'line', name: lang == 'en' ? 'Total' : '累積合計', yAxis: 1, data: data[:cumulative_sums])
2020
f.yAxis [
21-
{ title: { text: lang == 'en' ? 'New Dojos' : '開設数' }, tickInterval: 15, max: 75 },
21+
{ title: { text: lang == 'en' ? 'New' : '開設数' }, tickInterval: 15, max: 75 },
2222
{ title: { text: lang == 'en' ? 'Total' : '累積合計' }, tickInterval: 50, max: 250, opposite: true }
2323
]
2424
f.chart(width: HIGH_CHARTS_WIDTH, alignTicks: false)

0 commit comments

Comments
 (0)