mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-20 01:00:13 +01:00
Merge pull request #174 from kytrinyx/pie-chart-bug
Fix off-by-one error in pie chart data
This commit is contained in:
commit
55aa387ab9
2 changed files with 2 additions and 2 deletions
|
|
@ -355,7 +355,7 @@ class StatsController < ApplicationController
|
||||||
'id' => all_actions_per_context[i][:id]
|
'id' => all_actions_per_context[i][:id]
|
||||||
} }
|
} }
|
||||||
|
|
||||||
if size==pie_cutoff
|
if all_actions_per_context.size > pie_cutoff
|
||||||
@actions_per_context[size-1]['name']=t('stats.other_actions_label')
|
@actions_per_context[size-1]['name']=t('stats.other_actions_label')
|
||||||
@actions_per_context[size-1]['total']=@actions_per_context[size-1]['total']
|
@actions_per_context[size-1]['total']=@actions_per_context[size-1]['total']
|
||||||
@actions_per_context[size-1]['id']=-1
|
@actions_per_context[size-1]['id']=-1
|
||||||
|
|
|
||||||
|
|
@ -321,7 +321,7 @@ en:
|
||||||
top10_projects_30days: Top 10 project in past 30 days
|
top10_projects_30days: Top 10 project in past 30 days
|
||||||
spread_of_running_actions_for_visible_contexts: Spread of running actions for visible contexts
|
spread_of_running_actions_for_visible_contexts: Spread of running actions for visible contexts
|
||||||
actions_selected_from_week: "Actions selected from week "
|
actions_selected_from_week: "Actions selected from week "
|
||||||
spread_of_actions_for_all_context: Spread of actions for all context
|
spread_of_actions_for_all_context: Spread of actions for all contexts
|
||||||
click_to_show_actions_from_week: Click %{link} to show the actions from week %{week} and further.
|
click_to_show_actions_from_week: Click %{link} to show the actions from week %{week} and further.
|
||||||
other_actions_label: (others)
|
other_actions_label: (others)
|
||||||
top10_projects: Top 10 projects
|
top10_projects: Top 10 projects
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue