bar chart toggling now working