RMC_SetSingleBarColors function.
Set individual colors for each bar in a bar series of type RMC_BARSINGLE

Syntax
nResult (LONG) = RMC_SetSingleBarColors(
ByVal nCtrlId (LONG),
ByVal nRegion (LONG),
ByRef nFirstColorValue (LONG),
ByVal nColorValuesCount (LONG)
)
Parameter
nCtrlId (LONG)
Unique ID of the chart control, to which the series belongs.
nRegion (LONG)
Region to which the series belongs.
nFirstColorValue (LONG)
The first element of an one-dimensional array with color values as Color....constants for each bar. See Remarks
nColorValuesCount (LONG)
The total number of elements in the color array. If you want to use the internal color table, simply pass a 0.
Return value
0
No error, function succeeded.
RMC_ERROR_CTRLID
Wrong control ID (0 or no chart with this control ID was found).
RMC_ERROR_WRONGREGION
The region index is inexistent in the chart control.
RMC_ERROR_ALLOC
Error while allocating memory for the color values.
Remarks
If your chart has more than one series, you should call this function immeadiate after the call to RMC_AddBarSeries, at least befor you add the next series. You may use the Color... constants or any RGB-color as color values. The colors will be circular repeated if your series has more bars than your color array has elements.