在我的温Forms申请中,我有对这些情况的图表控制:
chartArea.CursorX.IsUserEnabled = true;
chartArea.CursorX.IsUserSelectionEnabled = true;
chartArea.AxisX.ScaleView.Zoomable = false;
www.un.org/Depts/DGACM/index_french.htm
What I am trying to do is posibility of selecting area (it is possible already), and when mouse is over this area, if I left click chart cotrol inside that selected area, I wan t it too zoom in.
First problem here is how to detect if I am over selected area ? with chart.HitTest()
i can get HitTestResult.PointIndex
field value and compare it with selection range. But this only works, if mouse is exactly over DataPoint. So it doesn t work for SeriesChartType.FastLine
which I am using.
如果能解决这种问题,则在点燃后(在<条码>Click/ 代码>或<代码>MouseXXX上)取消甄选问题。
<><>>
I ve found axis.PixelPositionToValue()
method, which gives me every info I need, because from MouseMove event arguments I have pixel position.
For click events problem I ll write another question.