summaryrefslogtreecommitdiff
path: root/app/views/projects/graphs
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-04-07 00:36:31 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-04-07 00:37:05 -0400
commit5cc11cfcab05b0109663757ae965ea3b1beabcd1 (patch)
treed262aee3b39540fec849b67348fc8654975e10a6 /app/views/projects/graphs
parent26a6cec90be5df25588427f940831427fbb83345 (diff)
downloadgitlab-ce-5cc11cfcab05b0109663757ae965ea3b1beabcd1.tar.gz
Lower the pointHitDetectionRadius for commit charts
Fixes #2088
Diffstat (limited to 'app/views/projects/graphs')
-rw-r--r--app/views/projects/graphs/commits.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/graphs/commits.html.haml b/app/views/projects/graphs/commits.html.haml
index 4a5d09b9503..78b4c1923dd 100644
--- a/app/views/projects/graphs/commits.html.haml
+++ b/app/views/projects/graphs/commits.html.haml
@@ -54,7 +54,7 @@
}
ctx = $("#hour-chart").get(0).getContext("2d");
- new Chart(ctx).Line(data,{"scaleOverlay": true, responsive: true});
+ new Chart(ctx).Line(data,{"scaleOverlay": true, responsive: true, pointHitDetectionRadius: 2})
data = {
labels : #{@commits_per_week_days.keys.to_json},
@@ -68,7 +68,7 @@
}
ctx = $("#weekday-chart").get(0).getContext("2d");
- new Chart(ctx).Line(data,{"scaleOverlay": true, responsive: true});
+ new Chart(ctx).Line(data,{"scaleOverlay": true, responsive: true, pointHitDetectionRadius: 2})
data = {
labels : #{@commits_per_month.keys.to_json},
@@ -82,4 +82,4 @@
}
ctx = $("#month-chart").get(0).getContext("2d");
- new Chart(ctx).Line(data,{"scaleOverlay": true, responsive: true});
+ new Chart(ctx).Line(data, {"scaleOverlay": true, responsive: true, pointHitDetectionRadius: 2})