fixed update_graphs to work with new bar chart