The following example creates a custom ASP.NET Core “Moving Average” indicator (when using DevExpress BI Dashboard):
-
Create a ChartCustomIndicator descendant (the
MovingIndicatorclass in this example).MovingIndicatoraccepts a collection of data points, evaluates values, and returns resulting points. These points are used to draw the indicator. -
Register
MovingIndicatorin IndicatorFactory to make it available as an indicator type. Call the Register method in your application before you save and load a dashboard (to serialize and deserialize the indicator within the dashboard’s XML). -
Register ChartIndicatorsExtension before the control is rendered to add the
MovingIndicatortype to the Trend Indicators editor. -
Create an instance of
MovingIndicatorand specify desired indicator settings. -
Once you launch the application, open the Trend Indicators editor and add the new "Moving Average" indicator type.
(you will be redirected to DevExpress.com to submit your response)
