Hi, I need to get the actual x-y values after the user has clicked somewhere on the graph. Any help would be appreciated, thanks.
JRB
Getting grid coordinates after a mouse click
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi JRB,
You can do this:
If it is not what are you exactly trying to get don't hesitate to ask it here.
You can do this:
Code: Select all
private void tChart1_MouseDown(object sender, MouseEventArgs e)
{
label1.Text = tChart1.Axes.Bottom.CalcPosPoint(e.X).ToString();
label2.Text = tChart1.Axes.Left.CalcPosPoint(e.Y).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 |