apply the different kinds of colors for diagram in application