Page 1 of 1

Spacing pointers in line series

Posted: Mon Sep 12, 2005 12:46 am
by 9637610
Is there a way to space the pointers in a series (like the 'draw every' in marks) ?
Cheers
Francis Pantus

Posted: Mon Sep 12, 2005 8:48 am
by narcis
Hi Francis,

You can use series GetPointerStyle event for that purpose as shown here:

Code: Select all

		private void Form1_Load(object sender, System.EventArgs e)
		{
			line1.FillSampleValues();
			line1.Pointer.Visible=true;
		}

		private void line1_GetPointerStyle(Steema.TeeChart.Styles.CustomPoint series, Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventArgs e)
		{
			if (e.ValueIndex % 5 == 0)
				e.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
			else
				e.Style = Steema.TeeChart.Styles.PointerStyles.Nothing;
		}