Look at CartesianChart dataToLocal and localToData they convert from a pixel point to a data point and vice versa.
If you want to get really clever then Ely Greenfield had a data canvas on his quietlyscheming blog. --- In [email protected], "nasawebguy" <[EMAIL PROTECTED]> wrote: > > Thank you. > > How do you covert the "where dropped" coordinates to data coordinates? > > I assume by where dropped, you mean x,y coordinates within the chart. > > and by data coordinates, you mean x,y data in my dataProvider. > > I guess I need to dig in and understand drop coordinates in the chart. > > Drag n' Drop is well documented generically, but after a day of > searching, I found no documentation on drag n' drop within a chart > using chart data. > > I appreciate your help. > Don > > > --- In [email protected], "simonjpalmer" <simonjpalmer@> > wrote: > > > > yes. > > > > Write yourself a custom renderer for the data points in your chart > > which traps the start of the drag. Add drag and drop handlers to your > > chart. On drop inspect what is being dropped and where the drop > > happened, convert into data coordinates, update the data accordingly > > and refresh your chart. > > > > All the drag drop stuff is very well documented. Converting from > > screen to data is possible on your chart via several mechanisms. Data > > binding should take care of refreshing your chart. > > > > hth > > Simon > > > > --- In [email protected], "nasawebguy" <dkerr@> wrote: > > > > > > Can you drag n' drop OR "move" a data point from one place to another > > > inside a chart and have it update the chart and dataprovider? > > > > > > For example, if my x-axis is date, and a datapoint sits at 1/9/2008, > > > and the user moves that datapoint to 2/9/2009, the chart/dataProvider > > > would update the new date for the selectedItem? > > > > > > Thanks, > > > Don > > > > > >

