Markstip not working

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Neelam
Advanced
Posts: 193
Joined: Fri Jun 08, 2007 12:00 am

Markstip not working

Post by Neelam » Wed Oct 08, 2008 12:08 pm

HI
I have a teechart where i want to display that when user hovers mouse over the series, corresponding legend ext should bedisplayed . For taht i used markstip and set it at run time and desing time also
like this :
Me.MarksTip1.Style = Steema.TeeChart.Styles.MarksStyles.Legend

But the problem is it is not displaying legend text even though legend is displaying correctly.

TO be more clear:
For example there are 2 curves and legend shows A and B then on mosue hover the first curve A should be showwn. But its not happening. WHY?

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

Post by Narcís » Wed Oct 08, 2008 12:38 pm

Hi shikha,

In that case you need to set tool style's to SeriesTitle. Code snippet below works fine.

Code: Select all

			Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
			Steema.TeeChart.Styles.Line line2 = new Steema.TeeChart.Styles.Line(tChart1.Chart);

			line1.FillSampleValues();
			line2.FillSampleValues();

			line1.Title = "A";
			line2.Title = "B";

			Steema.TeeChart.Tools.MarksTip mt1 = new Steema.TeeChart.Tools.MarksTip(tChart1.Chart);
			mt1.Style = Steema.TeeChart.Styles.MarksStyles.SeriesTitle;
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