diff options
| author | Dmitriy Zaporozhets <dzaporozhets@gitlab.com> | 2015-04-07 10:07:52 +0000 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dzaporozhets@gitlab.com> | 2015-04-07 10:07:52 +0000 |
| commit | 7d57d8b783eedd73997a193ca09563a49109c557 (patch) | |
| tree | a78443da912f21419fad1629d80f1001dc429222 /app | |
| parent | 526b28daa3837209a638c1c02aed3a5371e62ee3 (diff) | |
| parent | 5cc11cfcab05b0109663757ae965ea3b1beabcd1 (diff) | |
| download | gitlab-ce-7d57d8b783eedd73997a193ca09563a49109c557.tar.gz | |
Merge branch 'rs-issue-2088' into 'master'
Lower the pointHitDetectionRadius for commit charts
Needed to update the Chart.js dependency as well.
Fixes #2088
See merge request !1749
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/projects/graphs/commits.html.haml | 6 |
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}) |
