This is a migrated thread and some comments may be shown as answers.

Drag points up or down in a line series?

4 Answers 81 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 07 Dec 2011, 01:20 AM

Hi, we have an upcoming requirement that goes like this:

"For a chart with multiple line series, users should be able to drag individual points up or down to a new value on the Y-axis, and have the line series recalculate either as the user drags, or once the user stops dragging. The new selection must update the underlying data source as well."

I'm pretty sure that this is not an out-of-the-box feature with the RadChart - at this stage though I need to know if this is a feature that can be added on top of the RadChart (via a custom line series or something similar) or if it is in the 'too hard' basket.

Can you provide any idea of how this functionality might be achieved with the RadChart or if it is too difficult to consider at the moment? A complete solution would be wonderful, of course!

Thanks very much,

Sam

4 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 09 Dec 2011, 02:04 PM
Hello Sam,

We have attached a sample application that achieves the desired functionality to get you started. Basically you need to add mouse event handling logic to the line series point marks and use the built-in methods provided by the chart axis for physical-to-data-unit conversion.

Hope this helps.


Greetings,
Giuseppe
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Sam
Top achievements
Rank 1
answered on 11 Dec 2011, 11:22 PM
Brilliant! This is extremely helpful, thank you.

This sample provides a great foundation for what we want to do, not to mention saving us a lot of time!

Thanks!

Sam
0
Kevin
Top achievements
Rank 1
answered on 10 Jan 2012, 02:00 PM
I have a very similar need, but my project uses WinForms.  Is there a similar example project for Winforms?
0
Giuseppe
Telerik team
answered on 13 Jan 2012, 10:23 AM
Hello Kevin,

Unfortunately RadChart for Winforms does not expose similar functionality and it would not be possible to achieve the desired effect. One possible option is to use the RadChart for WPF control instead (RadChart for Silverlight and WPF share the same codebase) and host it inside a Winforms ElementHost.


All the best,
Giuseppe
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
Sam
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Sam
Top achievements
Rank 1
Kevin
Top achievements
Rank 1
Share this question
or