i want to create a line chart , where i can drag the line using the mouse and modify the graph doing so.
i am using MVVM , so i would like each mouse drag to change my VM data. so i can use it later .
is this supported by XamDatachart ?
if so, can i get a small example or a link ?
You can use a behavior to attach to the line series and in the behavior handle the mouse events required for manipulating the data. In the behavior I detect which item in the line series was clicked and while the user is holding the left mouse button down they can drag the data point up or down to give it a new value.
Take a look at the attached sample and let me know if it helps.
Let me know if you have any further questions on this matter.
Can you give an updated Version of this sample Project wich is compatible with Ultimate for WPF 2018.2?
Here's an updated version using the 18.2 dlls. It uses nuget to get them.
Sorry for the late reply, but I had to follow up other things in our company....I tried the updated Version and I still get Errors:In MainWindow.xaml at line 24 Position 22 I get an error:
The Tag "Interaction.Behaviors" is not contained in XML-Namespace "http://schemas.microsoft.com/expression/2010/interactivity"