I am attempting to reproduce something similar to an heartbeat in a XamDataChart LineSeries. I want the line to be drawn from left to right and then when it reaches the far right to start over on the left and overwrite the line. This seems to work fine but it is dificult to tell the current position of the chart. I would like something like the vertical crosshair that tracks mouse movement but use it for the current x position of the series. Is it better to create one from scratch or to hijack the crosshair?
Cool, glad that worked. Yeah, hijacking the existing crosshair would be a bit difficult/impossible for you currently as the requisite pieces are internal. We do provide you with enough info to calculate where you overlay a line on the graph, however.
-Graham
Thanks. We are currently using the XamDataChart due to the number of poinst we are plotting (100k+) so I do not think we can move to the WebChart.
However, I did find a solution in the forums posted by Graham. It does not use the crosshair but instead just draws a line on the chart. This worked just fine for what we wanted to do:https://es.infragistics.com/community/forums/f/ultimate-ui-for-wpf/48149/drawing-constant-lines/270571#270571
Hello,
What you are looking for can probably be achieved with XamWebChart, but currently not available in XamDataChart. Though GraphX / GraphY you will be able to obtain the coordinates of X/Y axis on mouse move. Please refer the the following help article for more information about Graph coordinates in case you decide using XamWebChart:
http://help.infragistics.com/NetAdvantage/DV/current/CLR4.0/?page=sl_dv_xamWebChart_Crosshair_Graph_Values.html
Thank you,Sam