Hello,
jbritt wrote:I am having problems setting the Series.Marks.Item attribute. My graph is a 3d bar graph, plotting multiple series...
I'm trying this in VB6 and I find no problems with the following examples.
This two examples do the same. They show/hide the marks alternatively:
Code: Select all
Private Sub Form_Load()
Dim i, j As Integer
For i = 0 To 3
TChart1.AddSeries scBar
TChart1.Series(i).FillSampleValues
For j = 0 To TChart1.Series(i).Count - 1
TChart1.Series(i).Marks.Item(j).Visible = (j Mod 2 = 0)
Next j
Next i
End Sub
Code: Select all
Private Sub Form_Load()
Dim i, j As Integer
For i = 0 To 3
TChart1.AddSeries scBar
TChart1.Series(i).FillSampleValues
For j = 0 To TChart1.Series(i).Count - 1
If j Mod 2 = 0 Then
TChart1.Series(i).Marks.Item(j).Show
Else
TChart1.Series(i).Marks.Item(j).Hide
End If
Next j
Next i
End Sub
This one doesn't hide the marks at indexes 0,2,4,... like the above. It shows the text without shape for these marks.
Code: Select all
Private Sub Form_Load()
Dim i, j As Integer
For i = 0 To 3
TChart1.AddSeries scBar
TChart1.Series(i).FillSampleValues
For j = 0 To TChart1.Series(i).Count - 1
TChart1.Series(i).Marks.Item(j).Transparent = (j Mod 2 = 0)
Next j
Next i
End Sub
If you still have problems with it, could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.