Generate random colors for colorbars based on the category id.