added method analyseData to barchart Data. Added /getBarchartData to routes