Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 3.36 KB

File metadata and controls

45 lines (29 loc) · 3.36 KB

Chart for WinForms - How to Implement the Best Fit Function, and Apply it to a Chart's Series

This example shows how to perform a custom regression analysis against scatter series points generated from a data table and how to display the Line of Best Fit as illustrated on the image below.

  • Create a point series and bind it to a data source. This series' data is to be analyzed.

  • Add a line series that will be used to display the Line of Best Fit.

  • Create a method that uses a custom formula to perform the regression analysis against the first series' points. The method should calculate data points used to plot the line series.

  • In the ChartControl.BoundDataChanged event handler, call the newly created method for the analyzed series (Series 1).

Note that you can also use built-in Regression Lines.

Files to Look At

Documentation

  • Indicators - This topic contains a list of built-in technical indicators that ship with the DevExpress Charts for WinForms.

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)