app/assets/javascripts/manage/lib/setupHighcharts.js
Function `setupHighcharts` has 33 lines of code (exceeds 25 allowed). Consider refactoring.var setupHighcharts = function() { Highcharts.setOptions({ global: { useUTC: false, }, legend: { labelFormatter: function() { var total = 0; for (var i = this.yData.length; i--; ) { total += this.yData[i]; } return this.name + ': ' + total; }, }, chart: { backgroundColor: '#ffffff', }, tooltip: { shared: true, }, plotOptions: { series: { animation: false, }, pie: { allowPointSelect: true, cursor: 'pointer', dataLabels: { enabled: true, format: '<b>{point.name}</b>: {point.y}', }, }, }, });};