Total Complexity | 4 |
Complexity/F | 1.33 |
Lines of Code | 11 |
Function Count | 3 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /*jslint browser */ |
||
3 | var graphs = { |
||
4 | turnAroundComparison: function (domId, course_id, department_id = false) { |
||
5 | fetch("chart/turn-around-comparison.php?course_id=" + course_id + (department_id !== false ? "&department_id=" + department_id : "")) |
||
6 | .then(function (response) { |
||
7 | return response.json(); |
||
8 | }).then(function (data) { |
||
9 | var tac = new Chart($(domId), data); |
||
10 | console.log(tac); |
||
|
|||
11 | }); |
||
12 | } |
||
13 | }; |
||
14 |