I have two series for each set of data. One line series and one points series for each set of data. I may have five different sets of data plotted on the same chart. I only want the markstip to show up for the point series. How do I get all the point series with markstips?
Here is the code:
Dim a As Integer
For a = 0 To TChart1.Series.Count - 1
If (TypeOf TChart1(a) Is Steema.TeeChart.Styles.Points) Then
marksTip.Series.Add(TChart1(a))
End If
' a = (a + 1)
Next
marksTip.Active = True
marksTip.MouseDelay = 500
marksTip.MouseAction = Steema.TeeChart.Tools.MarksTipMouseAction.Move
marksTip.Style = Steema.TeeChart.Styles.MarksStyles.XY
Would appreciate any help.
Thanks!
Multiple Series with Markstip
Figured it out
This code is in my mousemove event. I needed to be able to set all point series to have markstip on them. I did not want any of the line series that were plotted as well to have markstip. So I find out first if the series is a points series. If it is a point series I set the markstip.series to it. Since all the series are run through this piece of code, all the point series have markstips associated with them. Which is exactly what I wanted!
Dim a As Integer
For a = 0 To TChart1.Series.Count - 1
If (TypeOf TChart1.Series(a) Is Steema.TeeChart.Styles.Points) Then
marksTip.Series = TChart1.Series(a)
End If
Next
marksTip.Active = True
marksTip.MouseDelay = 500
marksTip.MouseAction = Steema.TeeChart.Tools.MarksTipMouseAction.Move
marksTip.Style = Steema.TeeChart.Styles.MarksStyles.XY
Dim a As Integer
For a = 0 To TChart1.Series.Count - 1
If (TypeOf TChart1.Series(a) Is Steema.TeeChart.Styles.Points) Then
marksTip.Series = TChart1.Series(a)
End If
Next
marksTip.Active = True
marksTip.MouseDelay = 500
marksTip.MouseAction = Steema.TeeChart.Tools.MarksTipMouseAction.Move
marksTip.Style = Steema.TeeChart.Styles.MarksStyles.XY