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
This commit is contained in:
commit
7d57d8b783
2 changed files with 7 additions and 7 deletions
|
@ -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})
|
||||
|
|
8
vendor/assets/javascripts/chart-lib.min.js
vendored
8
vendor/assets/javascripts/chart-lib.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue