Legend Color
Posted: Mon Dec 01, 2003 8:04 pm
Hi!
I've had some troubles with the chart that have more than one series.
I'm trying to make one self stacked chart, and the color reference in the legend doesn't appear.
Please, review the following source code and tell me what is the problem.
(Put one TChart and a Command Button in a form)
Tks
Christian Sabino
I've had some troubles with the chart that have more than one series.
I'm trying to make one self stacked chart, and the color reference in the legend doesn't appear.
Please, review the following source code and tell me what is the problem.
(Put one TChart and a Command Button in a form)
Tks
Christian Sabino
Code: Select all
Private Sub Command1_Click()
Dim iSer As Integer
iSer = TChart1.AddSeries(scBar)
TChart1.Series(iSer).Add 10, "Serie 1", clTeeColor
TChart1.Series(iSer).Add 20, "Serie 1", clTeeColor
TChart1.Series(iSer).Add 30, "Serie 1", clTeeColor
TChart1.Series(iSer).Marks.Visible = False
TChart1.Series(iSer).ColorEachPoint = True
TChart1.Series(iSer).asBar.MultiBar = mbSelfStack
iSer = TChart1.AddSeries(scBar)
TChart1.Series(iSer).Add 15, "Serie 2", clTeeColor
TChart1.Series(iSer).Add 25, "Serie 2", clTeeColor
TChart1.Series(iSer).Add 35, "Serie 2", clTeeColor
TChart1.Series(iSer).Marks.Visible = False
TChart1.Series(iSer).ColorEachPoint = True
TChart1.Series(iSer).asBar.MultiBar = mbSelfStack
End Sub