We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to redraw the chart while dragging the series out of the range?

Description:

The chart series can be dragged out of the boundary range, i.e., the Minimum and Maximum values that are not defined for the axis. This article describes how to drag the series with explicit minimum and maximum values.

 

Solution

The chart can be redrawn in the predefined range by using the DragEnd event, which is used to add the functionalities after dragging. In the DragEnd event, you can get the new position and axis value where the segment is dragged.

Based on the new value, you can change the secondary axis and values of the Minimum and Maximum properties.

 

XAML

 

C#

 

Figure 1: Initial segment position and preview dragging segment position.

 

Figure 2: Segment redrawn after dragging.

Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework:
6472 03/04/2016 03/07/2018 UWP SfChart 4.5
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.