Add bar graph support with validation
Move colourToInt function