Page 1 of 1

Markstip not working

Posted: Wed Oct 08, 2008 12:08 pm
by 13045482
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?

Posted: Wed Oct 08, 2008 12:38 pm
by narcis
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;