changed name of getColorIndex function, fixed colors for scatter when color index not specified