update stacked bar graph