Categorical colours for charts.

Fixes #399