Refactoring barchartData, testDummy Request working