added selector to uniquely colour bar chart columns
cleaned up code