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:
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;
}
}
}
}