Hi,
I'm going to draw a rectangle on the chart to select a specific area of the chart and then get the data value of the start and end point and pass into another method. I can now get the coordination of start point and end point, but I don't know how to get the data value by using those point.
Could you please give me some sample or points of how to get the data value from a point coordination?
Thanks
Kevin
Hi Kevin,
I'm not sure how you went about getting to this point but I'm curious if you've checked out the ChartInteraction samples? The WinChart has an AddMouseDownTool(IInteractionTool) method and there are several examples in the Chart samples that show the interaction tools in principle. That might simplify how to get to where you are currently... but hard to say without more information about how you got to this point.
Back to your main question... the value is really going to come from a primitive at that point which if you already have you can just query the primitive for it's value once you cast it into the type you were looking for in the first place. Did you already have a primitive when you spit back your coordinates of the start value?