if not categorized, type has the color
init attribute to NULL if not used