Marktips with multiple series
Posted: Fri Nov 07, 2008 8:23 am
Hi
I have a teechart which has 3 different type of series. Like the first one is in shape of line the second in shape of circle, third is triangle. Now line series has many data that is i have 5 lines in my chart, 5 circles and 5 triangles. Now i want marktips to be shown for each series like this
for line series-> seriestitle
for circle series-> X,y points
for triangle series-> X,y points
I tried something like ->
MarksTip1.Series.Add(tchlinVPECurve)
MarksTip1.Style = Steema.TeeChart.Styles.MarksStyles.SeriesTitle
MarksTip2.Series.Add(ActualMarker)
MarksTip2.Style = Steema.TeeChart.Styles.MarksStyles.XY
MarksTip3.Series.Add(ProposedMarker)
MarksTip3.Style = Steema.TeeChart.Styles.MarksStyles.XY
But it throws error-> object reference not set .. though i have created marktips in design mode and then using them in code. Also error is at these lines->
MarksTip1.Series.Add(tchlinVPECurve)
MarksTip2.Series.Add(ActualMarker)
MarksTip3.Series.Add(ProposedMarker)
I have a teechart which has 3 different type of series. Like the first one is in shape of line the second in shape of circle, third is triangle. Now line series has many data that is i have 5 lines in my chart, 5 circles and 5 triangles. Now i want marktips to be shown for each series like this
for line series-> seriestitle
for circle series-> X,y points
for triangle series-> X,y points
I tried something like ->
MarksTip1.Series.Add(tchlinVPECurve)
MarksTip1.Style = Steema.TeeChart.Styles.MarksStyles.SeriesTitle
MarksTip2.Series.Add(ActualMarker)
MarksTip2.Style = Steema.TeeChart.Styles.MarksStyles.XY
MarksTip3.Series.Add(ProposedMarker)
MarksTip3.Style = Steema.TeeChart.Styles.MarksStyles.XY
But it throws error-> object reference not set .. though i have created marktips in design mode and then using them in code. Also error is at these lines->
MarksTip1.Series.Add(tchlinVPECurve)
MarksTip2.Series.Add(ActualMarker)
MarksTip3.Series.Add(ProposedMarker)