stackedBarChart function

will return the data required for the stacked barchart for a given user