Pre loader

Can the Series drag from one chart to drop in anather chart?

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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?

  • You must to post comments
1
0

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

  • You must to post comments
0
0

thanks for you reply. it is helpful

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies