Hello everyone,
is it possible to edit interactively the XamDataChart points with the mouse, e.g. set new point with the mouse click or drag the existing one?
Any help will be greatly appreciated.
Stefan Stoyanov, Good day!
Your example (xamDataChartAddPoints), helped me a lot. Thank you very much!
I have to ask you. Please send me a sample to the line. By clicking on the chart to add a new point in line.
x++; y=y_mouse.
Thank you Graham, I've prepared a solution and it works exactly as you describe. There is a problem with auto range axes. But dragging works.
As long as you don't auto range the axes you should be able to do data point drag in application code. You can hook up to the mouse events of the series and modify the underlying values on a data point as you drag the mouse around.
The problem with doing this with axis auto ranging is that if you get the point too close to the edge of the chart then the ranges of the axes will change underneath the point being dragged and you can create a scenario where the range gets updated many times erroneously.
This is not a native feature of the chart, but you still should be able to do it in application code. Let me know if you have any questions on how to accomplish it.
-Graham
Hello Stefan,
many thanks. It works.
Hello,
Thank you for your post. I have been looking through it and I created a sample project for you where you can add DataPoint, when you click with the mouse. As for the DataPoints dragging, after some research it has been determined to be a new feature request. I have sent your feature request directly to our product management team. Our product team chooses new feature requests for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your reference number for this feature request is FR13776.
If you would like to follow up on your feature request at a later point, you may contact Developer Support management via email. Please include the reference number of your feature request in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com