Sets a new color index.
This method is used to set a new color index for a data point, when automatic data point coloring is enabled.