control.Region(n).BarSeries(n).SetColorValue nIndex, nValue

PurposePass a single data value for a bar of Type RMC_BARSINGLE
Parameter
nIndex Long Index for the bar, which shall get the color value.
nValue Long (RMC_Colors constant or any RGB value)The color value.
Return value-
Remarks

You can have for each bar in a RMC_BARSINGLE series a different color: set property Color to Transparent. Alternatively to the internal color values, which are normally used, you can set your individual colors for the bars in three different ways:

  • Property ColorArray: pass all color values as an one-dimensional array.
  • Property ColorString: pass all color values in a string, in which the single values are delimited by asterisks.
  • Method SetColorValue: pass each color value apart.

Which way you choose depends on your coding preferences and - may be - on the development system you use. Important: If you use this method of setting the color values, you must set either for each bar a color value, or at least start with index 1, followed by 2, 3 and so on.

Example' Set the color values for the first three bars. If your series has more than three bars, the colors get circular repeated.
RMChartX1.Region(1).BarSeries(1).Color = Transparent RMChartX1.Region(1).BarSeries(1).SetColorValue 1, Gold
RMChartX1.Region(1).BarSeries(1).SetColorValue 2, Green
RMChartX1.Region(1).BarSeries(1).SetColorValue 3, HotPink