can generate colors and legend