Spacing pointers in line series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
FrancisP
Newbie
Newbie
Posts: 15
Joined: Mon Jul 04, 2005 4:00 am

Spacing pointers in line series

Post by FrancisP » Mon Sep 12, 2005 12:46 am

Is there a way to space the pointers in a series (like the 'draw every' in marks) ?
Cheers
Francis Pantus

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Sep 12, 2005 8:48 am

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;
		}
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply