summaryrefslogtreecommitdiff
path: root/app/views/projects/graphs
diff options
context:
space:
mode:
authorJason Dai <dai.xiaojun@gmail.com>2017-08-08 12:02:13 +0000
committerClement Ho <clemmakesapps@gmail.com>2017-08-08 12:02:13 +0000
commit2b9a64a212e3bcd27c1335b22a857f4df6846254 (patch)
tree81d0c7b7a1e8fee76f8692168db8c0ec68309f7c /app/views/projects/graphs
parent2b781c782de19b99526a649df5595e4161a84dc7 (diff)
downloadgitlab-ce-2b9a64a212e3bcd27c1335b22a857f4df6846254.tar.gz
Fix bar chart does not display label at hour 0
Diffstat (limited to 'app/views/projects/graphs')
-rw-r--r--app/views/projects/graphs/charts.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/graphs/charts.html.haml b/app/views/projects/graphs/charts.html.haml
index 228c8c84792..9f5a1239a82 100644
--- a/app/views/projects/graphs/charts.html.haml
+++ b/app/views/projects/graphs/charts.html.haml
@@ -78,8 +78,8 @@
%script#projectChartData{ type: "application/json" }
- projectChartData = {};
- - projectChartData['hour'] = { 'keys' => @commits_per_time.keys, 'values' => @commits_per_time.values }
- - projectChartData['weekDays'] = { 'keys' => @commits_per_week_days.keys, 'values' => @commits_per_week_days.values }
- - projectChartData['month'] = { 'keys' => @commits_per_month.keys, 'values' => @commits_per_month.values }
+ - projectChartData['hour'] = @commits_per_time
+ - projectChartData['weekDays'] = @commits_per_week_days
+ - projectChartData['month'] = @commits_per_month
- projectChartData['languages'] = @languages
= projectChartData.to_json.html_safe