Breaking Change T1145461
Visible to All Users

The default drawing algorithm used for the Spline series view has been changed

What Changed

We added a SplineAlgorithm property and changed the default drawing algorithm used for the Spline series view.

This change affects the following series views:

WinForms

WPF

Reasons for Change

Cardinal Splines, which were previously used as the default drawing algorithm, go beyond local extrema and the spline line continues its path beyond the minimum and maximum values. With our new algorithm, the line stays between local minimum and maximum values:

Clipboard-File-3.png

Impact on Existing Apps

This change will affect the visual representation of the spline chart. The line in the spline series will be redrawn using our new algorithm.

How to Revert to Previous Behavior

XtraCharts, MVC Chart, XRChart, DXCharts, Chart module for XAF

Set the SplineAlgorithm property to Cardinal:

C#
((SplineSeriesView)series.View).SplineAlgorithm = SplineAlgorithm.Cardinal;

BI Dashboard

For BI Dashboard, handle the control's DashboardItemControlUpdated event to obtain the underlying chart control and set the SplineAlgorithm property to Cardinal:

C#
private void dashboardDesigner1_DashboardItemControlUpdated(object sender, DevExpress.DashboardWin.DashboardItemControlEventArgs e) { ChartDashboardItem chartItem = dashboardDesigner1.Dashboard.Items[e.DashboardItemName] as ChartDashboardItem; if (e.ChartControl != null && chartItem != null) { foreach (Series series in e.ChartControl.Series) { if(series.View is SplineSeriesView) { ((SplineSeriesView)series.View).SplineAlgorithm = SplineAlgorithm.Cardinal; } } } }

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.