The second question is that I want drag a curve from one chart to another chart. i found no sample about that. what shall i do?
- wang siyuan asked 9 years ago
- You must login to post comments
Hi Wang,
There isn’t actually anything out of the box to let you drag a curve from one chart to another, but you might be able to set it up quite easily by using .NET’s Drag and Drop mechanism.
1. You will need to know if a curve is selected.
You can use our SeriesSelectedModifier, or build your own
2. You will need to handle mouse events exiting one chart and entering another
I would suggest looking at the Drag and Drop events in WPF
3. You will need to remove the RenderableSeries from one chart and put on another
e.g. once you have an event where your selected series was dropped, use this code to move it
// Where firstSciChartSurface, secondSciChartSurface are type SciChartSurface
var series = firstSciChartSurface.RenderableSeries[0];
firstSciChartSurface.RenderableSeries.RemoveAt(0);
secondSciChartSurface.RenderableSeries.Add(series);
Let me know if this helps!
Best regards,
Andrew
- Andrew Burnett-Thompson answered 9 years ago
- You must login to post comments
thanks for you reply. it is helpful
- wang siyuan answered 9 years ago
- You must login to post comments
Please login first to submit.