#47 bar chart updating optimization