added normalize function to stack bar graph