intake/static/intake/js/stats_entry.js
Function buildChart2
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildChart2(data) {
var timeline = data.map(function (oneOrgsData) {
var weeklyRates = oneOrgsData.weekly_totals.map(function(week) {
week.date = moment(week.date).format('YYYY-MM-DD');
week.count = Number(week.count);
Function buildChart1
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildChart1(data){
var timeline = data.map(function (oneOrgsData) {
var weeklyRates = oneOrgsData.weekly_totals.map(function(week) {
week.date = moment(week.date).format('YYYY-MM-DD');
week.count = Number(week.count);