Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
ad85f1f5
Commit
ad85f1f5
authored
May 13, 2015
by
Josef Kufner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change plots to bar graphs
parent
7140e800
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
app/views/projects/graphs/commits.html.haml
app/views/projects/graphs/commits.html.haml
+12
-9
No files found.
app/views/projects/graphs/commits.html.haml
View file @
ad85f1f5
...
...
@@ -50,39 +50,42 @@
datasets : [{
fillColor : "rgba(220,220,220,0.5)",
strokeColor : "rgba(220,220,220,1)",
pointColor : "rgba(220,220,220,1)",
pointStrokeColor : "#EEE",
barStrokeWidth: 1,
barValueSpacing: 1,
barDatasetSpacing: 1,
data :
#{
@commits_per_time
.
values
.
to_json
}
}]
}
ctx = $("#hour-chart").get(0).getContext("2d");
new Chart(ctx).
Line
(data,{"scaleOverlay": true, responsive: true, pointHitDetectionRadius: 2})
new Chart(ctx).
Bar
(data,{"scaleOverlay": true, responsive: true, pointHitDetectionRadius: 2})
data = {
labels :
#{
@commits_per_week_days
.
keys
.
to_json
}
,
datasets : [{
fillColor : "rgba(220,220,220,0.5)",
strokeColor : "rgba(220,220,220,1)",
pointColor : "rgba(220,220,220,1)",
pointStrokeColor : "#EEE",
barStrokeWidth: 1,
barValueSpacing: 1,
barDatasetSpacing: 1,
data :
#{
@commits_per_week_days
.
values
.
to_json
}
}]
}
ctx = $("#weekday-chart").get(0).getContext("2d");
new Chart(ctx).
Line
(data,{"scaleOverlay": true, responsive: true, pointHitDetectionRadius: 2})
new Chart(ctx).
Bar
(data,{"scaleOverlay": true, responsive: true, pointHitDetectionRadius: 2})
data = {
labels :
#{
@commits_per_month
.
keys
.
to_json
}
,
datasets : [{
fillColor : "rgba(220,220,220,0.5)",
strokeColor : "rgba(220,220,220,1)",
pointColor : "rgba(220,220,220,1)",
pointStrokeColor : "#EEE",
barStrokeWidth: 1,
barValueSpacing: 1,
barDatasetSpacing: 1,
data :
#{
@commits_per_month
.
values
.
to_json
}
}]
}
ctx = $("#month-chart").get(0).getContext("2d");
new Chart(ctx).
Line
(data, {"scaleOverlay": true, responsive: true, pointHitDetectionRadius: 2})
new Chart(ctx).
Bar
(data, {"scaleOverlay": true, responsive: true, pointHitDetectionRadius: 2})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment