回复 3楼wengyz的帖子
请使用以下方法获取:
- private void c1Chart1_MouseMove(object sender, MouseEventArgs e)
- {
- double x = 0, y = 0;
- c1Chart1.ChartGroups[0].CoordToDataCoord(e.X, e.Y, ref x, ref y);
- MessageBox.Show(string.Format("x = {0:0.00}, y = {1:0.00}", x, y));
- }
复制代码 |