Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
XamDataChart - Interactive LineSeries
posted

Hi ,

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  ?

Thanks.

Parents
No Data
Reply
  • 34510
    Offline posted

    Hi Shaul,

    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.

    xamDataChart-DragLineSeriesData.zip
Children