cool. thanks. 
didn't find the data canvas? But Ely has some
very cool charting samples here
http://demo.quietlyscheming.com/ChartSampler/app.html 
He has a mouse handling example that shows how to convert mouse
location to data. Looks like what I need to learn, then learn the drag
drop side. But, I'm on a short deadline, so this feature will have to
come later. I was hoping charts supported datapoint drag/drop natively.

Thanks for the help Simon. and thanks Ely for the wealth of charting
examples!

Don




--- In flexcoders@yahoogroups.com, "simonjpalmer" <[EMAIL PROTECTED]>
wrote:
>
> 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 flexcoders@yahoogroups.com, "nasawebguy" <dkerr@> 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 flexcoders@yahoogroups.com, "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 flexcoders@yahoogroups.com, "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
> > > >
> > >
> >
>


Reply via email to