I have a chart form where I have one chart, but three ChartAreas. Further, each ChartArea can be visible or not, with the intentions that at least one will be visible. The user can also resize the form thus causing the overall chart to be resized, but fortunately not relocated; however the maximum XY ranges can be different due to the resize.
My desire is to be able to perform zoom/unzoom operations on each ChartArea based on a mouse action. For example; hovering over a given ChartArea and using the mousewheel I'd like to zoom/unzoom.
I'm not sure how to determine the geography of a ChartArea. For instance I have the one chart, 3 ChartAreas, then would they be equally spaced with some buffering between? How would I determine the buffer spacing between charts, is that even a property? Same question as to whether or not I'm withing the physical chart space; these are FastLine charts, so I have an X and Y axis and those are labeled. Further, the values of the data can cause the X-Axis labeling to be larger - thus shifting that axis more to the right.
Do I use Axis(XY).PixelPositionToValue and if that value is <0 then I'm not in the ChartArea?
Control
, then you can see it'sHeight
,Width
, andPosition
. And there should be aMoveOver
event or someting. – gunr2171