Is there a way to display a label for a specific point?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Jan 08, 2004 12:38 pm

Yes, you can use the OnGetSeriesMark event to customize the text Marks and which you want to be showed :
For example using the following code will show only the max Mark :

Code: Select all

		private void Form1_Load(object sender, System.EventArgs e)
		{
			fastLine1.FillSampleValues(10);
			fastLine1.Marks.Visible = true;
		}

		private void fastLine1_GetSeriesMark(Steema.TeeChart.Styles.Series series, Steema.TeeChart.Styles.GetSeriesMarkEventArgs e)
		{
			if (series.YValues.Value[e.ValueIndex] != series.YValues.Maximum )
			{
				e.MarkText = "";
			}														 
		}

Josep Lluis Jorge
http://support.steema.com

Post Reply