Selecting a range of points with the mouse
Posted: Thu Apr 05, 2007 11:09 am
I am using a chart with tpointseries - what I would like to do is be able to select a range of points by dragging and then move then into another series. {D2007, Chart pro}
I have several groups of data defined which are plotted as separate series. I need to be able to let the user change which groups the data belong to graphically.
I can do it point by point using a Chartlistbox
if series <> form2.ChartListBox1.SelectedSeries then
begin
TempX:= series.XValue[ValueIndex];
TempY:= Series.YValue[ValueIndex];
form2.ChartListBox1.SelectedSeries.AddXY(tempX, TempY);
Series.Delete(ValueIndex);
end;
I have several groups of data defined which are plotted as separate series. I need to be able to let the user change which groups the data belong to graphically.
I can do it point by point using a Chartlistbox
if series <> form2.ChartListBox1.SelectedSeries then
begin
TempX:= series.XValue[ValueIndex];
TempY:= Series.YValue[ValueIndex];
form2.ChartListBox1.SelectedSeries.AddXY(tempX, TempY);
Series.Delete(ValueIndex);
end;