[b]Hi
I want to know how to use MarkTips to show the Z axis coordinate.
We can use
Steema.TeeChart.Styles.MarksStyles.XY
to display X and Y coordinates. But what about the Z axis coordinate in case of surface graph.
Thanks
Swati [/b]
Using MarkTips in TeeChart to display Z axis coordinate
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Swati,
In that case you can combine MarkTips' GetText event and chart's MouseMove event as in here:
In that case you can combine MarkTips' GetText event and chart's MouseMove event as in here:
Code: Select all
private int ValueIndex = -1;
private void tChart1_MouseMove(object sender, MouseEventArgs e)
{
ValueIndex = surface1.Clicked(e.X, e.Y);
}
private void marksTip1_GetText(Steema.TeeChart.Tools.MarksTip sender, Steema.TeeChart.Tools.MarksTipGetTextEventArgs e)
{
if (ValueIndex != -1)
{
e.Text = surface1.ZValues[ValueIndex].ToString();
}
}
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |