This is outside the ```if ($('.bar-chart').length) {}``` block which causes js issues since we call the function ```assigmentTypeBars``` which is only defined in that if block. I assume we can move this inside the if block with no issues but, as the comments suggest, perhaps I should ask Cory.