nischal Posted February 27, 2013 Report Share Posted February 27, 2013 Hello, I have been trying to find coordinates of plot area of the chart. Plot area I mean is the exact point where the Axes starts ( i am using only one Axis). The margins of the plotarea element of Chart do not seem to properly address my requirement because I believe it includes the spacing for Axis labels also. if I can get coordinates of any one of four corners then I can calculate others. I would be very thankful if somebody can help me get this? I have attached a figure to make my question more clear. Thank You Quote Link to comment Share on other sites More sharing options...
JuanC Posted February 27, 2013 Report Share Posted February 27, 2013 If you want to draw something "on top" of the plotarea, you can use the annotation extension, using this extension you can create any WPF Visuals (Rectangle, Polygon, etc.) as well as other controls (Other chart, Button, etc.) and attach it to an axis-related coordinate, e.g. the top left corner would be X = 0 and Y = MaxYValue Does this help? JuanC Quote Link to comment Share on other sites More sharing options...
nischal Posted February 28, 2013 Author Report Share Posted February 28, 2013 Hi Jaun, Thank You for your quick reply. I did what you suggested, but I have a requirement of sliding the control for a range selection within chart. I have been able to slide it but when chart is loaded with data, the sliding of control become little sluggish than I would have liked. I wanted to decouple the sliding of control from the amount of data the chart is loaded with. Thank You Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.