Skip to content

Commit

Permalink
feat: init line history analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 1, 2021
1 parent e902ea5 commit d365f8f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ <h2>Code Frequency</h2>
<select id="code-frequency-select"></select>
<div id="code-frequency"></div>
<div id="commit-contributions"></div>
<div id="line-history"></div>

<h2>Commit Calendar</h2>
<div id="commit-calendar"></div>
Expand Down Expand Up @@ -150,6 +151,8 @@ <h2>Commits Tree</h2>
<script src="public/js/graph/git/commit-calendar.js"></script>
<script src="public/js/graph/git/commit-code-frequency.js"></script>
<script src="public/js/graph/git/commit-contributions.js"></script>
<script src="public/js/graph/git/line-history.js"></script>

<script src="public/js/graph/struct/struct_visual.js"></script>

<script src="public/js/index.js"></script>
Expand Down
3 changes: 3 additions & 0 deletions web/public/js/graph/git/line-history.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function renderLineHistory(data) {
console.log(data);
}
7 changes: 4 additions & 3 deletions web/public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ d3.json("data/git-commits.json").then(function (data) {
renderHeatmapChart(commits_by_hours(data, {before_month: 6}), "#hour-heatmap-half-year");
renderHeatmapChart(commits_by_hours(data, {before_month: 3}), "#hour-heatmap-three-month");

let commitByDays = commit_by_days(data);
let commit_by_days = commit_by_days(data);

renderCommitCalendar(commitByDays, "#commit-calendar");
renderCommitContributions(commitByDays, '#commit-contributions');
renderCommitCalendar(commit_by_days, "#commit-calendar");
renderCommitContributions(commit_by_days, '#commit-contributions');
renderLineHistory(commit_by_weeks);

renderCodeFrequency(commit_by_weeks(data));
});
Expand Down

0 comments on commit d365f8f

Please sign in to comment.