PDA

View Full Version : Dragging a PlotSeries item


FlashBulb
03-06-2008, 03:32 PM
I would like to be able to drag a PlotSeries item, but I'm having some issues.

I can sort of do it by setting the containing Chart's .dragEnabled property to true, but the PlotSeries point drags far from the mouse pointer, as demonstrated in the attached pic (green arrow is drag motion, red arrow shows where dragging PlotSeries is).

I thought I could maybe set the PlotSeries' .dragEnabled to true, but it doesn't have that property.

How can I drag just the point? What is currently happening - am I dragging the whole Chart??

I have a couple of related questions, but I've already posted them... no responses yet:
How can I find out which Year I'm dropping it on? (http://www.actionscript.org/forums/showthread.php3?t=163090)
Why are the Years in x-axis getting cut off?? (http://www.actionscript.org/forums/showthread.php3?t=161427)

FlashBulb
04-16-2008, 05:01 PM
Can anyone help me out with this? I want to be able to drag a PlotSeries item to a different point on the Chart...

kahuja
04-17-2008, 05:15 PM
From what I have read, Chart.dragEnabled will make your chart dragable and not the series.

FlashBulb
04-17-2008, 05:59 PM
Yeah, that's what seems to be happening... :eek: there must be a way to drag Series points....

kahuja
04-20-2008, 05:34 AM
I am not sure, why should there be a way, under what use case would you like to drag a series?

FlashBulb
04-21-2008, 01:21 PM
I have a Chart that's a representation of spans of time, with horizontal LineSeries and PlotSeries'. I want the user to be able to adjust the span of time manually, by dragging it.