1 | (function($, Chart) { |
||
2 | $(document).ready(function() { |
||
3 | Chart.defaults.global.responsive = true; |
||
4 | Chart.defaults.global.scaleBeginAtZero = true; |
||
5 | Chart.defaults.global.maintainAspectRatio = false; |
||
6 | |||
7 | var pie_ctx = document.getElementById('category-pie-chart').getContext('2d'); |
||
8 | |||
9 | var pie_data = JSON.parse(document.getElementById('pie_data').innerHTML); |
||
10 | |||
11 | var pieChart = new Chart(pie_ctx, { |
||
0 ignored issues
–
show
Unused Code
introduced
by
Loading history...
|
|||
12 | type: 'pie', |
||
13 | data: pie_data, |
||
14 | options: { |
||
15 | legend: { |
||
16 | display: false |
||
17 | } |
||
18 | } |
||
19 | }); |
||
20 | }); |
||
21 | })(jQuery, Chart) |
||
0 ignored issues
–
show
The variable
Chart seems to be never declared. If this is a global, consider adding a /** global: Chart */ comment.
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed. To learn more about declaring variables in Javascript, see the MDN.
Loading history...
|
|||
22 |