Fix bar chart colours when switching filters.