Fix #365 make colouring of graphs work in chrome