That's because you are not setting a different color for each point in the series. Try using the code below which assign a random color to each point:
Code: Select all
Private Sub Form_Load()
Dim A(2, 2), B(2, 2), C(2)
A(0, 0) = 14
A(1, 0) = 134
A(1, 1) = 23
A(0, 1) = 43
B(0, 0) = 2
B(1, 0) = 23
B(0, 1) = 24
B(1, 1) = 43
C(0) = "s"
C(1) = "sd"
TChart1.AddSeries scBar
TChart1.AddSeries scBar
For i = 0 To 1
For j = 0 To 1
Randomize
TChart1.Series(i).Add A(i, j), B(i, j), RandomColor
Next j
TChart1.Series(i).ColorEachPoint = True
Next i
End Sub
Private Function RandomColor() As OLE_COLOR
RandomColor = RGB(CInt(Int((255 * Rnd()) + 1)), CInt(Int((255 * Rnd()) + 1)), CInt(Int((255 * Rnd()) + 1)))
End Function