Page 1 of 1

Pointers by code question

Posted: Tue Sep 19, 2006 2:18 pm
by 9641906
I want to add seriespointers to series that is generated runtime. I am using this method:


ActiveTarget = Convert.ToInt32(Convert.ToString(tChartTargetDesigner.Series.Add (new Steema.TeeChart.Styles.Line())).Substring(4)) - 1;

And then I can call the subject series using the ActiveTarget as index later on.

But these line series has no Seriespoinnter.

How do I add seriespointer and how do control their properties?

Thanks,

Posted: Tue Sep 19, 2006 2:25 pm
by narcis
Hi BerntR,

To make line series pointer visible you just need to use something like this:

Code: Select all

      foreach (Steema.TeeChart.Styles.Line s in tChart1.Series)
      {
        s.Pointer.Visible = true;
      }

Posted: Tue Sep 19, 2006 3:19 pm
by 9641906
narcis wrote:Hi BerntR,

To make line series pointer visible you just need to use something like this:

Code: Select all

      foreach (Steema.TeeChart.Styles.Line s in tChart1.Series)
      {
        s.Pointer.Visible = true;
      }

Thanks,

Will this work for adding the seriespointer to the series?

new Steema.TeeChart.Styles.SeriesPointer (tChartTargetDesigner,
tChartTargetDesigner.Series);

Posted: Wed Sep 20, 2006 7:49 am
by narcis
Hi BerntR,

The code I posted will make the pointer visible for those series which have the pointer feature.

Posted: Wed Sep 20, 2006 9:40 am
by 9641906
The code you posted did the trick for me.

But since I work with series arrays, I need to add pointers to each new series. This works:


new Steema.TeeChart.Styles.SeriesPointer (tChart1.Chart,
tChart1.Series);



Thanks,