I want to draw a line on the background plot area of the chart. I need to set the line start and end point based on X and Y values coming from a scatter line series. I know I can convert the mouse position to series values, but I need to go the other way around. Is this possible?
Hello,
Thank you for your feedback. Currently XamDataChart does not provide such kind of functionality. I can suggest you put the control in Canvas and use the approach given in the following link :
http://stackoverflow.com/questions/16037753/wpf-drawing-on-canvas-with-mouse-events
Let me know, if you need any further assistance on this matter.
Sorry should have explained a little more. I need to draw a sloped line. The start and end points will be somewhere in the chart. The user will then need to be able to move the start or end marker in any direction with the line redrawing.
Thank you for your post. I have been looking into your question and I can suggest you look into the following link from our online documentation which describes how to create a Custom Axis Tickmark Values :
http://help.infragistics.com/NetAdvantage/WPF/2013.1/CLR4.0/?page=xamDataChart_Creating_Custom_Axis_Tickmark_Values.html
Also you can read the following forum thread where Graham Murray has gave suggestions how to draw a line on the XamDataChart control :
http://ko.infragistics.com/community/forums/t/48149.aspx