SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.